2024-04-18 10:46:06 +03:00
|
|
|
name: Lint
|
|
|
|
|
2024-06-27 16:51:13 +03:00
|
|
|
on: pull_request
|
2024-04-18 10:46:06 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2024-10-11 19:09:26 +03:00
|
|
|
- name: Cache node modules
|
|
|
|
id: cache-npm
|
|
|
|
uses: actions/cache@v3
|
|
|
|
env:
|
|
|
|
cache-name: cache-node-modules
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
${{ runner.os }}-build-
|
|
|
|
${{ runner.os }}-
|
|
|
|
|
2024-04-18 10:46:06 +03:00
|
|
|
- name: Install Node.js
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20.11.1
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
2024-05-13 02:54:48 +03:00
|
|
|
- name: Validate current commit (last commit) with commitlint
|
|
|
|
run: npx commitlint --last --verbose
|
|
|
|
|
2024-04-29 13:08:04 +03:00
|
|
|
- name: Typecheck
|
|
|
|
run: yarn typecheck
|
|
|
|
|
2024-04-18 10:46:06 +03:00
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
2024-05-16 03:58:41 +03:00
|
|
|
|
|
|
|
- name: Format check
|
|
|
|
run: yarn format-check
|