47 lines
1.1 KiB
YAML
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@v2
|
|
with:
|
|
node-version: 16
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: Turbo run
|
|
run: npx turbo run build test lint bundle
|
|
|
|
coverage:
|
|
name: Build, check, 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
|