Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Sep 14, 2023
1 parent a3f57d3 commit 377d683
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Restore build artifacts
uses: actions/cache/restore@v3
- uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
Expand All @@ -79,17 +78,14 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Restore build artifacts
uses: actions/cache/restore@v3
- uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}

- run: npm run test:types

mocha:
needs: build # Require build to complete before running tests

name: Run End-to-End Tests
runs-on: ubuntu-latest

Expand All @@ -98,14 +94,10 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version: 14
cache: npm

- name: Restore build artifacts
uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
- run: npm ci --with=dev

- run: npm run test:end-to-end

Expand All @@ -123,8 +115,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Restore build artifacts
uses: actions/cache/restore@v3
- uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}
Expand Down

0 comments on commit 377d683

Please sign in to comment.