chore(deps): bump: bump dependency svelte to v4 [security] #397
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: CI | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
jobs: | |
test-push: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [12, 14] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache ~/.pnpm-store | |
uses: actions/cache@main | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }} | |
- run: npx pnpm i --frozen-lockfile=false | |
- run: npm run lint | |
cypress: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
browser: | |
- chrome | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- name: Cache ~/.pnpm-store | |
uses: actions/cache@main | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-14-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }} | |
- run: npx pnpm i --frozen-lockfile=false | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
browser: ${{ matrix.browser }} | |
install: false | |
start: npm run dev | |
wait-on: "http://localhost:6006" | |
wait-on-timeout: 180 | |
env: | |
# pass the Dashboard record key as an environment variable | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# pass GitHub token to allow accurately detecting a build vs a re-run build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |