-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (34 loc) · 1.01 KB
/
lint.yml
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
39
40
41
42
43
name: CI Lint
on: [pull_request]
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 format
- run: | # todo fix later
npx nx build cdk
npx nx build ngxs
- name: Run build artifacts dependent
run: |
npx nx build eslint-plugin-enterprise
- 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