bacpop-110 Persist Microreact tokens #316
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: playwright CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.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 |