feat!: Default all loaders and mutators to enforcing #663
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: tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version-file: package.json | |
- run: yarn --frozen-lockfile | |
- run: yarn lint -- -- --max-warnings=0 | |
- name: Check if barrels are up to date | |
run: yarn ctix && [ -z "$(git status --porcelain)" ] | |
- run: yarn test -- -- --coverage | |
- run: yarn integration -- -- --coverage | |
- uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./packages/*/coverage/clover.xml | |
flags: unittest | |
fail_ci_if_error: true | |
- uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./packages/*/coverage-integration/clover.xml | |
flags: integration | |
fail_ci_if_error: true |