Skip to content

chore: add eslint and prettier (#49) #3

chore: add eslint and prettier (#49)

chore: add eslint and prettier (#49) #3

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
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Linting
run: yarn lint
- name: Prettier
run: yarn check-format
- name: Compile
run: yarn check-types