-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 951 Bytes
/
develop.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
name: Develop Check
on:
workflow_call:
push:
branches-ignore:
- main
jobs:
check:
name: Lint
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: npm
cache-dependency-path: './package-lock.json'
- name: Package Clean Install
run: npm ci
- name: Lint & Format Check
run: npm run lint-check
- name: Slack Notification by NonSuccess
uses: 8398a7/action-slack@v3
if: success() != true
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow
author_name: 'check'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}