separate job for coverage, fix infinite loop
This commit is contained in:
parent
bcc5b5846f
commit
ed86fd9f77
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -15,8 +15,8 @@ env:
|
||||||
TURBO_TEAM: quantified-uncertainty
|
TURBO_TEAM: quantified-uncertainty
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-check-coverage:
|
build-test-lint:
|
||||||
name: Build, check, coverage
|
name: Build, test, lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -29,5 +29,18 @@ jobs:
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Turbo run
|
- name: Turbo run
|
||||||
run: npx turbo run build test lint bundle
|
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
|
- name: Coverage
|
||||||
run: npx turbo run coverage --no-cache # coverage builds for squiggle-lang can generate slower code that should never be cached
|
run: npx turbo run coverage --no-cache # coverage builds for squiggle-lang can generate slower code that should never be cached
|
||||||
|
|
|
@ -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: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: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: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": "yarn coverage:rescript && yarn coverage:ts",
|
||||||
"coverage:local": "yarn coverage:rescript:local && yarn coverage:ts:local",
|
"coverage:local": "yarn coverage:rescript:local && yarn coverage:ts:local",
|
||||||
"lint:rescript": "./lint.sh",
|
"lint:rescript": "./lint.sh",
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"dependsOn": ["^build", "build"]
|
"dependsOn": ["^build", "build"]
|
||||||
},
|
},
|
||||||
"coverage": {
|
"coverage": {}
|
||||||
"dependsOn": ["build"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user