Skip to content

Shared improved

Shared improved #22

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
paths-ignore:
- '**.md'
jobs:
build-and-test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.13.0
- name: Enable Corepack
run: corepack enable
- name: Set Yarn version
run: corepack prepare yarn@4.6.0 --activate
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
packages/*/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
- name: Generate prisma
run: yarn generate
- name: Lint
run: yarn lint
- name: Check formatting
run: yarn check
- name: Build
run: yarn build