Skip to content

Commit

Permalink
Refactor and add artifact upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicgamedeveloper committed Aug 26, 2024
1 parent 6a60e5a commit 843c7b9
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,42 @@ jobs:
cache: "yarn"
cache-dependency-path: "**/yarn.lock"

- name: Install dependencies
run: |
cd client/
yarn install
yarn playwright install --with-deps
- name: Run the linting checks
run: |
cd client/
yarn install
yarn syntax
- name: Build the React SPA website
run: |
cd client/
yarn install
yarn build
- name: Run client unit, integration and e2e tests
- name: Run client unit and integration tests
run: |
cd client/
yarn install
yarn playwright install --with-deps
yarn test:int
yarn test:unit
yarn test:e2e
- name: Upload unit and integration test coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: client/coverage/clover.xml
flags: client-unit-integration-tests

- name: Run e2e tests
continue-on-error: true
run: |
yarn test:e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30

- name: Upload e2e test coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 843c7b9

Please sign in to comment.