Skip to content

Use reusable work flows and caches #1

Use reusable work flows and caches

Use reusable work flows and caches #1

Workflow file for this run

on:
push:
branches:
- main
pull_request:
workflow_call:
name: CI - build
env:
DISABLE_V8_COMPILE_CACHE: 1
jobs:
CI:
name: CI_Build_${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20, 22]
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Run linting
run: yarn build