Skip to content

Commit

Permalink
added E2E testing job
Browse files Browse the repository at this point in the history
  • Loading branch information
nina1012 committed Oct 26, 2024
1 parent dfcc869 commit ec27266
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: CI/CD
on:
- push
jobs:
# FIRST JOB => check if code is valid
code-checks:
name: Code Checks
runs-on:ubuntu-latest
steps:
- uses: actions/checkout@v4 # IMPORTANT TO NOTE! this action allows the job to access the repository
- uses: actions/checkout@v4 # IMPORTANT TO NOTE! this action allows the job to access/check out the repository under $GITHUB_WORKSPACE (https://github.com/marketplace/actions/checkout)
- uses: actions/setup-node@v4
with:
node-version: 18
Expand All @@ -15,4 +16,16 @@ jobs:
- run: npm run test
- run: npm run lint
- run: npm run format:check
- run: npm run types:check
- run: npm run types:check
# SECOND JOB => run e2e tests
# it will build the app, start it and run all e2e tests
e2e:
name: E2E Tests
runs-on:ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v6 # this action install dependencies and caches them for future use, then run cypress e2e tests on election browser and gives us test summary after completion (https://github.com/marketplace/actions/cypress-io)
with:
build: npm run build
start: npm run start

0 comments on commit ec27266

Please sign in to comment.