Skip to content

Commit

Permalink
Merge pull request #72 from 5app/modernise
Browse files Browse the repository at this point in the history
fix: use github registry, update dependencies
  • Loading branch information
MrSwitch authored Sep 7, 2022
2 parents 491c99f + 3c860e1 commit 39bd678
Show file tree
Hide file tree
Showing 6 changed files with 16,127 additions and 86 deletions.
80 changes: 26 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,34 @@
version: 2.1

orbs:
node: circleci/[email protected]
release: fiveapp/[email protected]

executors:
node:
working_directory: ~/repo
docker:
- image: circleci/node:17
default:
docker:
- image: cimg/node:lts

jobs:
checkout_code:
executor: node
steps:
- checkout
- persist_to_workspace:
root: ~/repo
paths:
- .

test:
executor: node
steps:
- attach_workspace:
at: ~/repo
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: install dependencies with npm
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm test
- persist_to_workspace:
root: ~/repo
paths:
- node_modules

release:
executor: node
steps:
- attach_workspace:
at: ~/repo
- checkout
- run: npm run semantic-release
test:
executor: default
steps:
- checkout
- node/install-packages
- run: npm run lint
- run: npm test

workflows:
build:
jobs:
- checkout_code
- test:
requires:
- checkout_code
- release:
context: org-global
requires:
build:
jobs:
- test
- release/npm_and_github:
context:
- org-global
- github-release
requires:
- test
filters:
branches:
only:
- main
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"5app"
],
"rules": {
"no-console": 0
"no-console": 0,
"max-params": [0, {"max": 4}]
}
}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Buslane

[![Greenkeeper badge](https://badges.greenkeeper.io/5app/buslane.svg)](https://greenkeeper.io/)
[![Coverage Status](https://coveralls.io/repos/github/5app/buslane/badge.svg)](https://coveralls.io/github/5app/buslane)

## Intro
Expand Down
Loading

0 comments on commit 39bd678

Please sign in to comment.