squiggle/.github/workflows/ci.yml
Vyacheslav Matyukhin fd6c4ae1de
yarn in CI tuning
2022-10-08 19:55:57 +04:00

47 lines
1.1 KiB
YAML

name: Squiggle packages checks
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: quantified-uncertainty
jobs:
build-test-lint:
name: Build, test, lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Turbo run
run: npx turbo run build test lint bundle
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Coverage
run: npx turbo run coverage --no-cache # coverage builds for squiggle-lang can generate slower code that should never be cached