Feature/leaflet dev app #178
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
install-test-coverage: | |
runs-on: ubuntu-latest | |
timeout-minutes: 7 | |
container: | |
image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 | |
options: --user 1001 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress install | |
uses: cypress-io/github-action@v6 | |
with: | |
runTests: false | |
- name: Cypress info | |
run: npx cypress info | |
- name: Set API key | |
run: sh setup.sh ${{ secrets.ORS_API_KEY }} | |
- name: Run tests | |
run: npm run test:ci | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
# fix for https://github.com/codecov/codecov-action/issues/598 / https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 | |
token: ${{ secrets.CODECOV_TOKEN }} |