-
Notifications
You must be signed in to change notification settings - Fork 23
85 lines (70 loc) · 2.02 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: 'CI'
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
Lint:
name: Format & Lint
runs-on: ubuntu-latest
steps:
- name: Print GitHub event action
run: |
echo '${{ github.event.action }}'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci --no-progress --ignore-scripts=false
- name: Format
run: 'npm run format'
- name: Lint
run: 'npm run lint'
Test-Unit:
name: Test - Unit
runs-on: ubuntu-latest
steps:
- name: Print GitHub event action
run: |
echo '${{ github.event.action }}'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci --no-progress --ignore-scripts=false
- name: Test
run: 'npm run test'
Test-Action: # make sure the action works on a clean machine without building
name: Test - Action
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
days-before-stale: 1
days-before-delete: 200
comment-updates: true
max-issues: 30
tag-committer: true
stale-branch-label: 'stale branch 🗑️'
compare-branches: 'info'
branches-filter-regex: '^((?!dependabot))'
pr-check: true
dry-run: false
ignore-issue-interaction: false
Build:
name: Build
runs-on: ubuntu-latest
needs: [Lint, Test-Unit, Test-Action]
steps:
- name: Print GitHub event action
run: |
echo '${{ github.event.action }}'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci --no-progress --ignore-scripts=false
- name: Build
run: 'npm run build && npm run package'