Skip to content

murmurhash mirror PR #250

murmurhash mirror PR

murmurhash mirror PR #250

Workflow file for this run

name: Turbo CI
on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
DO_NOT_TRACK: 1
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# this is pretty verbose and repetitive, but github workflows require it
# the first action is commented, most of those comments apply to all actions
# every 'turbo' call is cached and essentially no-op if the inputs match
# pnpm cached by lock hash
# turbo cached pnpm lock
jobs:
turbo-lint:
name: Lint
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- id: lint
uses: buildjet/cache@v4
with:
path: .turbo
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-lint
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v4
- uses: buildjet/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo lint --cache-dir=.turbo
turbo-build:
name: Build
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- id: built
uses: buildjet/cache@v4
with:
path: .turbo
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-built
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v4
- uses: buildjet/setup-node@v4
with:
node-version: '22.4.1'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo build --cache-dir=.turbo
turbo-test:
name: test
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- id: tested
uses: buildjet/cache@v4
with:
path: .turbo
key: ${{ hashFiles('pnpm-lock.yaml') }}-${{ github.ref }}-${{ github.sha }}-test
restore-keys: ${{ hashFiles('pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v4
- uses: buildjet/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo test --cache-dir=.turbo