-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (48 loc) · 1.24 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
44
45
46
47
48
49
50
51
52
name: lint
on:
push
jobs:
eslint:
runs-on: ubuntu-latest
name: run eslint
steps:
- uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
with:
run_install: true
- uses: actions/setup-node@v4.1.0
with:
node-version-file: .node-version
cache: pnpm
- name: eslint check
run: |
pnpm lint
prettier:
runs-on: ubuntu-latest
name: run prettier check
steps:
- uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
with:
run_install: true
- uses: actions/setup-node@v4.1.0
with:
node-version-file: .node-version
cache: pnpm
- name: prettier check
run: |
pnpm lint:format
slack-notify:
if: always()
needs: [eslint, prettier]
name: post slack
runs-on: ubuntu-latest
steps:
- uses: Gamesight/slack-workflow-status@v1.3.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
- uses: swfz/failed-log-to-slack-action@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}