1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

test: add cypress e2e (#159)

This commit is contained in:
Divlo
2021-08-13 15:48:29 +02:00
committed by GitHub
parent f7d304ca80
commit 266b3f8589
19 changed files with 2893 additions and 1373 deletions

View File

@ -46,7 +46,24 @@ jobs:
- run: 'npm run lint:markdown'
- run: 'npm run lint:typescript'
build:
test-unit:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2.3.4'
- name: 'Use Node.js'
uses: 'actions/setup-node@v2.4.0'
with:
node-version: '16.x'
cache: 'npm'
- name: 'Install'
run: 'npm install'
- name: 'Unit Test'
run: 'npm run test:unit'
test-lighthouse:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2.3.4'
@ -64,11 +81,11 @@ jobs:
run: 'npm run build'
- name: 'Lighthouse'
run: 'npm run lighthouse'
run: 'npm run test:lighthouse'
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
test:
test-e2e:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2.3.4'
@ -82,12 +99,15 @@ jobs:
- name: 'Install'
run: 'npm install'
- name: 'Test'
run: 'npm run test'
- name: 'Build'
run: 'npm run build'
- name: 'End To End (e2e) Test'
run: 'npm run test:e2e'
release:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
needs: [analyze, lint, build, test]
needs: [analyze, lint, test-unit, test-e2e, test-lighthouse]
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2.3.4'