separate job for coverage, fix infinite loop

This commit is contained in:
Vyacheslav Matyukhin 2022-10-08 19:13:44 +04:00
parent bcc5b5846f
commit ed86fd9f77
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
3 changed files with 17 additions and 6 deletions

View File

@ -15,8 +15,8 @@ env:
TURBO_TEAM: quantified-uncertainty
jobs:
build-check-coverage:
name: Build, check, coverage
build-test-lint:
name: Build, test, lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -29,5 +29,18 @@ jobs:
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

View File

@ -25,7 +25,7 @@
"coverage:rescript:local": "rm -f *.coverage && yarn clean && BISECT_ENABLE=yes yarn build && yarn test:rescript && bisect-ppx-report html",
"coverage:ts:local": "yarn clean && yarn build && nyc --reporter=lcov yarn test:ts",
"coverage:rescript": "yarn clean && BISECT_ENABLE=yes yarn build:rescript && yarn test:rescript && bisect-ppx-report send-to Codecov",
"coverage:ts": "yarn coverage:ts && codecov",
"coverage:ts": "yarn coverage:ts:local && codecov",
"coverage": "yarn coverage:rescript && yarn coverage:ts",
"coverage:local": "yarn coverage:rescript:local && yarn coverage:ts:local",
"lint:rescript": "./lint.sh",

View File

@ -25,8 +25,6 @@
"bundle": {
"dependsOn": ["^build", "build"]
},
"coverage": {
"dependsOn": ["build"]
}
"coverage": {}
}
}