test: use dam to download data #338
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: Build and test | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: | | |
npm install --location global pnpm | |
pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Lint | |
run: pnpm lint | |
- name: Download test data | |
run: pnpm test:data:download | |
- name: Test with Chrome | |
uses: cypress-io/github-action@v5 | |
with: | |
start: pnpm run test:ci | |
record: true | |
component: true | |
browser: chrome | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test with Firefox | |
uses: cypress-io/github-action@v5 | |
with: | |
start: pnpm run test:ci | |
record: true | |
component: true | |
browser: firefox | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Not quite read for automated publication | |
#- name: Publish | |
#env: | |
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
#NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
#run: | | |
#git config --global user.name "GitHub Actions" | |
#git config --global user.email "[email protected]" | |
#npx semantic-release |