Skip to content

Merge pull request #655 from michielgerritsen/dependabot/npm_and_yarn… #1817

Merge pull request #655 from michielgerritsen/dependabot/npm_and_yarn…

Merge pull request #655 from michielgerritsen/dependabot/npm_and_yarn… #1817

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout 🛎
uses: actions/[email protected]
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules 📦
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies 👨🏻‍💻
run: yarn
- name: Run linter 👀
run: yarn lint
- name: Run Cypress 🌎
run: yarn cypress
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Cypress logs
path: |
cypress/videos