-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (60 loc) · 1.56 KB
/
main.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
name: main
on:
push:
branches:
- main
pull_request:
jobs:
install:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
check-format:
name: Check Format
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Check Format
run: npm run format:check
lint:
name: Lint
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Lint
run: npm run lint -- --format junit -o reports/lint-results.xml
- name: Upload Report
uses: actions/upload-artifact@v3
if: always()
with:
name: lint-results
path: reports/lint-results.xml
ansible:
name: Check Ansible Syntax and Lint
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: fernandopasik/actions/setup-node@main
- name: Setup Python
uses: fernandopasik/actions/setup-python@main
- name: Setup Ansible
uses: fernandopasik/actions/setup-ansible@main
- name: Check Ansible Syntax
run: npm run ansible:check
- name: Lint Ansible
run: npm run ansible:lint