Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Misc updates (#54)
Browse files Browse the repository at this point in the history
- Update CI to node 12, 14, 16
- Add CI dependency caching
- Upgrade all dependencies.
  • Loading branch information
ryan-roemer authored May 12, 2021
1 parent ecbcdbc commit c91df16
Show file tree
Hide file tree
Showing 3 changed files with 765 additions and 623 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,8 +25,36 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Installation
run: yarn install --frozen-lockfile --non-interactive
# Caching: root project
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

# Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux.
- name: Use Yarn cache
if: startsWith(runner.os, 'Linux')
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-${{ matrix.node-version }}-
yarn-${{ runner.os }}-
- name: Use node_modules cache
id: node-modules-cache
uses: actions/cache@v2
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-${{ matrix.node-version }}-
node-modules-${{ runner.os }}-
- name: Project installation
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --prefer-offline --frozen-lockfile --non-interactive
env:
CI: true

Expand All @@ -37,6 +65,7 @@ jobs:
- name: Checks
run: yarn check-ci

- name: Code coverage
run: yarn codecov
env:
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
},
"dependencies": {
"acorn-node": "^2.0.1",
"resolve": "^1.19.0"
"resolve": "^1.20.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"codecov": "^3.8.1",
"eslint": "^7.13.0",
"codecov": "^3.8.2",
"eslint": "^7.26.0",
"eslint-config-formidable": "^4.0.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-promise": "^4.2.1",
"mocha": "^8.2.1",
"mock-fs": "^4.13.0",
"eslint-plugin-promise": "^5.1.0",
"mocha": "^8.4.0",
"mock-fs": "^4.14.0",
"nyc": "^15.1.0",
"sinon": "^9.2.1",
"sinon-chai": "^3.5.0"
"sinon": "^10.0.0",
"sinon-chai": "^3.6.0"
}
}
Loading

0 comments on commit c91df16

Please sign in to comment.