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 b2b12a1 commit 1611e85
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build package
uses: ./.github/actions/build
- uses: ./.github/actions/build
with:
node: ${{ env.NODE_VERSION }}

Expand Down Expand Up @@ -86,6 +85,8 @@ jobs:
- 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 @@ -94,12 +95,22 @@ jobs:

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

- run: npm install --no-package-lock
- uses: actions/cache/restore@v3
with:
path: .
key: ${{ env.CACHE_KEY }}

- id: setup-chrome
uses: browser-actions/setup-chrome@v1

- run: |
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
${{ steps.setup-chrome.outputs.chrome-path }} --version
- run: npm run test:end-to-end
- run: CHROMIUM_BIN=$(which chrome) npm run test:end-to-end

lint:
needs: build # Require build to complete before running tests
Expand Down

0 comments on commit 1611e85

Please sign in to comment.