Allow skipping data logging for a trial with record_data: false
#1307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Build, lint, and test on Node.js ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
# Running this after `npm ci` because `npm ci` removes `node_modules`: | |
- name: Download Turborepo cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules/.cache/turbo | |
key: ${{ runner.os }}-node-${{ matrix.node }}-turbo-${{ hashFiles('node_modules/.cache/turbo') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node }}-turbo- | |
- name: Check types | |
run: npm run tsc | |
- name: Build packages | |
run: npm run build | |
# TODO setup linting | |
# - name: Lint | |
# run: npm run lint | |
- name: Run tests | |
run: npm run test -- --ci --coverage --maxWorkers=2 --reporters=default --reporters=github-actions | |
# TODO setup codecov or coveralls | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v1 |