-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.27 KB
/
check-code-compliance.yaml
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
name: Check code compliance
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
action-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: actionlint version
run: ${{ steps.get_actionlint.outputs.executable }} -version
shell: bash
- name: Check workflow files
# TODO: include composites (https://github.com/rhysd/actionlint/issues/46)
run: ${{ steps.get_actionlint.outputs.executable }} -color -verbose
shell: bash
prettier:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Download prettier
id: get_prettier
run: sudo npm i -g prettier
shell: bash
- name: prettier version
run: npx prettier --version
shell: bash
- name: Check workflow files
run: npx prettier --check '.'
shell: bash
megalint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: neohelden/actions-library/check-code-compliance@main