Skip to content

Commit

Permalink
test: run in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Nov 14, 2023
1 parent 7560470 commit 177c9e4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build app and run tests

on:
push:
branches:
- '*'

concurrency:
# Cancel in progress runs for this branch
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.39.0-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Dependencies
run: pnpm install && pnpm playwright install --with-deps
shell: sh
- name: Build Application
run: pnpm run build
shell: sh
- name: Run Tests
run: pnpm run test
shell: sh
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 177c9e4

Please sign in to comment.