skjuler innføring alertstripe (#963) #391
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: Cypress cache | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
cypress-cache: | |
name: Cypress cache | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.2.0 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
cache: 'pnpm' | |
registry-url: 'https://npm.pkg.github.com' | |
- name: Cypress binary cache | |
uses: actions/cache@v4 | |
id: cypress-cache | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | |
- name: Install cypress binary | |
if: steps.cypress-cache.outputs.cache-hit != 'true' | |
run: pnpm install --frozen-lockfile && pnpm exec cypress install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} |