Skip to content

Commit

Permalink
fixing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftyp committed Sep 17, 2023
1 parent fcc84e0 commit 0f94e26
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,38 @@ on:
branches: main

jobs:
test:

unit:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- run: yarn install
- run: yarn build
- name: Unit Test
run: yarn test:unit

playwright:

runs-on: ubuntu-latest

container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'
cache: 'yarn'

- run: yarn install
- run: yarn run playwright install --with-deps
- run: yarn build

- name: Set Chrome Version
Expand All @@ -26,13 +45,6 @@ jobs:
echo "Actions ChromeDriver is $CHROMEVER"
echo "CHROMEVER=${CHROMEVER}" >> $GITHUB_ENV
- name:
continue-on-error: true
run: yarn lint

- name: Unit Test
run: yarn test:unit

- name: Chrome Test
run: yarn test:browser --project=chrome

Expand Down

0 comments on commit 0f94e26

Please sign in to comment.