mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
ci: add e2e workflow
This commit is contained in:
1 parent
c7a97f90fd
commit
62dc949bd8
1 file changed
+21
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user