Merge pull request #9 from bloq/fix-lint-staged #14
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: Checks on CI | |
# Will limit one workflow per branch and one per pull_request at the same time | |
# and cancel if a new one appears. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
push: | |
jobs: | |
code_checks: | |
name: Code Styling check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup env | |
uses: ./.github/actions/setup-env | |
- name: Check formatting | |
run: npm run format:check | |
- name: Check linting | |
run: npm run lint | |
tests: | |
name: Tests checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup env | |
uses: ./.github/actions/setup-env | |
- name: Run test | |
run: npm run test |