squiggle/.github/workflows/ci.yml

49 lines
1.0 KiB
YAML
Raw Normal View History

name: Squiggle packages checks
2022-03-23 17:55:31 +00:00
2022-03-25 17:52:51 +00:00
on:
2022-04-12 00:49:02 +00:00
push:
branches:
- master
- develop
2022-03-25 17:52:51 +00:00
pull_request:
branches:
- master
2022-04-11 21:41:40 +00:00
- develop
2022-03-23 17:55:31 +00:00
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: quantified-uncertainty
2022-04-11 22:56:24 +00:00
jobs:
build-test-lint:
name: Build, test, lint
2022-09-12 05:50:21 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
2022-10-08 15:55:57 +00:00
uses: actions/setup-node@v3
2022-09-12 05:50:21 +00:00
with:
node-version: 16
cache: 'yarn'
2022-10-08 14:37:34 +00:00
- name: Install dependencies
2022-10-08 15:55:57 +00:00
run: yarn --frozen-lockfile
- name: Turbo run
2022-10-08 13:45:59 +00:00
run: npx turbo run build test lint bundle
coverage:
2022-10-08 15:24:12 +00:00
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-10-12 11:35:42 +00:00
with:
fetch-depth: 2
- 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