-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (58 loc) · 1.57 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'Integration Tests'
on:
push:
branches:
- '**'
tags-ignore:
- '**'
defaults:
run:
shell: 'bash'
permissions:
contents: read
id-token: write
jobs:
format:
runs-on: 'ubuntu-latest'
steps:
# checkout the code
- name: 'checkout'
uses: 'actions/checkout@v3'
# if necessary can install a specific version of terraform
#- name: 'Install Terraform 1.0.9'
# uses: 'hashicorp/setup-terraform@v2'
# with:
# terraform_version: '1.0.9'
# check the terraform formatting
- name: 'check formatting'
run: |
terraform fmt -check -recursive
validate:
runs-on: 'ubuntu-latest'
steps:
# checkout the code
- name: 'checkout'
uses: 'actions/checkout@v3'
# if necessary can install a specific version of terraform
#- name: 'Install Terraform 1.0.9'
# uses: 'hashicorp/setup-terraform@v2'
# with:
# terraform_version: '1.0.9'
# validate the module can compile
- name: 'validate module'
run: |
terraform init
terraform validate
spellcheck:
runs-on: 'ubuntu-latest'
steps:
# checkout the code
- name: 'checkout'
uses: 'actions/checkout@v3'
# perform a spellcheck on the markdown
# https://github.com/marketplace/actions/github-spellcheck-action
- name: 'Spellcheck'
uses: 'rojopolis/[email protected]'
with:
source_files: 'CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md'
task_name: 'Markdown'