Skip to content

Commit

Permalink
Merge pull request #1084 from Fdawgs/ci/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Jan 26, 2024
2 parents bf81771 + 20710ab commit 0a4e26d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-and-test.yml
Expand Up @@ -12,21 +12,14 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-${{ matrix.node-version }}-
${{ runner.os }}-npm-
cache: npm
cache-dependency-path: package-lock.json

- name: install
run: |
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/coverage.yml
Expand Up @@ -11,17 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: npm
cache-dependency-path: package-lock.json

- run: npm ci
- run: npm i -g c8 codecov
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Expand Up @@ -14,20 +14,13 @@ jobs:
# delegate to the build- and-test workflow, but I haven't found a way to do
# that yet.
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x

- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-10.x-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-10.x-
${{ runner.os }}-npm-
cache: npm
cache-dependency-path: package-lock.json

- name: install
run: |
Expand Down

0 comments on commit 0a4e26d

Please sign in to comment.