-
Notifications
You must be signed in to change notification settings - Fork 30
45 lines (40 loc) · 938 Bytes
/
tests.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
name: Testing
on:
pull_request:
branches:
- main
jobs:
run_action_warning:
name: Test action only warn
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
iac_dir: 'test_dirs/fail/'
iac_type: 'terraform'
iac_version: 'v14'
policy_type: 'aws'
only_warn: true
run_action_no_issues:
name: Test run action no issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
with:
iac_dir: 'test_dirs/success/'
iac_type: 'terraform'
iac_version: 'v14'
policy_type: 'aws'
only_warn: true
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
check_hidden: true
skip: ./.git