Skip to content

Commit

Permalink
chore: use workspaces (#100)
Browse files Browse the repository at this point in the history
* chore: use workspaces

We had rolled our own workspaces, but I think we can use npm workspaces
and cut down on duplication. Also, hopefully this plays better with
renovate.

* docs: update for workspaces

* feat: test on more node versions.

* fix: run all node versions to completion
  • Loading branch information
ojeytonwilliams authored Jan 21, 2022
1 parent 43847e4 commit 0a12150
Show file tree
Hide file tree
Showing 29 changed files with 32,521 additions and 48,366 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [12, 14, 16]
fail-fast: false

steps:
- name: Checkout Source Files
Expand All @@ -22,11 +23,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Update npm
run: npm i -g npm@8

- name: Start database
uses: supercharge/[email protected]

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm run test-local-or-ci
run: npm run test-local-or-ci
4 changes: 2 additions & 2 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
- `git pull origin master` to add the new changes

## If updating a project:
- If needed: `cd` into the project folder
- If needed: update packages
- Make sure the environment variables are set
- `npm install` to add new modules
- `npm ci -w=project-name` to update modules
- anything else needed
- `pm2 list` to find the id of the project to restart

Expand Down
4,422 changes: 0 additions & 4,422 deletions american-british-translator/package-lock.json

This file was deleted.

Loading

0 comments on commit 0a12150

Please sign in to comment.