ci: add e2e workflow

This commit is contained in:
4gray committed 2023-01-02 23:00:13 +01:00
1 parent c7a97f90fd
commit 62dc949bd8
1 file changed
+21
+21
View File
@@ -27,6 +27,27 @@ jobs:
- run: npm run build:prod
env:
CI: true
e2e-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
- run: npm ci
- run: npm run build:prod
- run: npx playwright test -c playwright.config.ts
env:
e2e: true
release:
needs: [build-and-test]
runs-on: ${{ matrix.os }}