Sync changes to main branch (#123) #2
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: Continuous Integration | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
# Cancel previous runs that are not completed yet | |
group: afj-controller-${{ github.ref }}-${{ github.repository }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
runs-on: ubuntu-20.04 | |
name: Validate | |
steps: | |
- name: Checkout afj-controller | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.19.0 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Linting | |
run: yarn lint | |
- name: Prettier | |
run: yarn check-format | |
- name: Compile | |
run: yarn check-types |