Skip to content

Merge pull request #45 from bacpop/license #331

Merge pull request #45 from bacpop/license

Merge pull request #45 from bacpop/license #331

Workflow file for this run

name: playwright CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./app/client/package-lock.json
- name: get config file
run: |
pwd
cp ./app/server/src/resources/config.json.in.development ./app/server/src/resources/config.json
- name: Run all components
working-directory: .
run: ./scripts/run_test
- name: Install playwright and dependencies
working-directory: ./app/client
run: |
npx playwright install
- name: Run e2e tests
env:
MICROREACT_TOKEN: ${{ secrets.MICROREACT_TOKEN }}
working-directory: ./app/client
run: npx playwright test --reporter=github
- name: Stop all components
if: always()
working-directory: .
run: ./scripts/stop_test
- uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: app/client/test-results
# - name: tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3