Skip to content

Create general info page, Part 1 #33

Create general info page, Part 1

Create general info page, Part 1 #33

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Changed to 20, as 22 is not yet stable
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Yarn
run: corepack enable
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run unit tests
run: yarn run test
- name: Run linter
run: yarn run lint
- name: Run prettier
run: yarn run prettier