Skip to content

fix workflow tests and install playwright browsers #1990

fix workflow tests and install playwright browsers

fix workflow tests and install playwright browsers #1990

Workflow file for this run

name: test
on: [push]
jobs:
fe-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
install-packages: true
- name: Test front end
run: npm run coverage --prefix=app/static
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./app/static/coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }} # required
be-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
build-and-run-server: true
- name: Test back end
run: npm test --prefix=app/server
- name: Check versions
run: npm run genversion --prefix=app/server -- --check-only
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./app/server/coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }} # required
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
build-and-run-server: true
- name: Test back end integration
run: npm run integration-test --prefix=app/server
playwright-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
build-and-run-server: true
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Test e2e
run: npm run test:e2e --prefix=app/static
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
install-packages: true
- name: Lint back end
run: npm run lint --prefix=app/server
- name: Lint front end
run: npm run lint --prefix=app/static