chore(main): release 1.1.2 #41
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
# CI variable is used to detect CI environment for tests to run | |
- name: Create env file | |
run: | | |
touch .env | |
echo CI=true >> .env | |
- name: Run Playwright e2e tests (with coverage) | |
run: npm run test:coverage | |
# uncomment for artifact usage | |
# - uses: actions/upload-artifact@v3 | |
# if: always() | |
# with: | |
# name: coverage | |
# path: coverage/ | |
# retention-days: 30 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./coverage/ | |
fail_ci_if_error: true |