-
Notifications
You must be signed in to change notification settings - Fork 29
53 lines (52 loc) · 1.33 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
name: "Tests"
on: [push]
jobs:
unit:
name: npm test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm test
integ:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- windows-2022
- macos-13
- macos-14
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
# Step 1
- name: Git Checkout
uses: actions/checkout@v4
# Step 2
- name: Setup Cloud Formation Linter with Latest Version
uses: ./
# Step 3
- name: Print the Cloud Formation Linter Version & run Linter.
run: |
cfn-lint --version
cfn-lint -t ./examples/template.yml
# Step 4
- name: Setup Cloud Formation Linter with Specific Version
uses: ./
with:
version: "0.72.0"
# Step 5
- name: Print the Cloud Formation Linter Version & run Linter.
run: |
cfn-lint --version
cfn-lint -t ./examples/template.yml
# Step 6
### Testing specifying a version and command
- name: Testing with CFN Lint Version & Command
uses: ./
with:
command: cfn-lint -t ./examples/template.yml