-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (31 loc) · 884 Bytes
/
lint.yml
File metadata and controls
38 lines (31 loc) · 884 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
35
36
37
38
name: CI Lint
on:
pull_request:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Scan repo for find local actions
uses: actions/checkout@v4
- name: Setup Git
id: git-setup
uses: ./.github/actions/git
with:
token: ${{ secrets.ANGULAR_RU_BOT_PAT }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run format
run: npm run prettier -- --write
- name: Run lint
run: npm run lint
- name: Autocommit fixed files and push
uses: ./.github/actions/autopush
with:
username: ${{ steps.git-setup.outputs.username }}
email: ${{ steps.git-setup.outputs.email }}
token: ${{ secrets.ANGULAR_RU_BOT_PAT }}
concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true