-
-
Notifications
You must be signed in to change notification settings - Fork 643
34 lines (34 loc) · 710 Bytes
/
main.yml
File metadata and controls
34 lines (34 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
install-and-lint:
runs-on: ubuntu-latest
concurrency:
group: install-and-lint-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install node dependencies
run: yarn
- name: Format code
run: |
yarn format
- name: Run linter
run: |
yarn lint
- name: Check types
run: |
yarn check-types