Add ci (#8)
Fix #1 Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/8
This commit is contained in:
parent
91172351d7
commit
019f8a6446
28
.gitea/workflows/test.yml
Normal file
28
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,28 @@
|
||||
name: 'Setup Terraform'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
terraform-versions:
|
||||
name: 'Terraform Versions'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v3
|
||||
- uses: https://github.com/hashicorp/setup-terraform@v2
|
||||
|
||||
- name: Terraform fmt
|
||||
id: fmt
|
||||
run: terraform fmt -check
|
||||
continue-on-error: true
|
||||
|
||||
- name: Terraform Init
|
||||
id: init
|
||||
run: terraform init
|
||||
|
||||
- name: Terraform Validate
|
||||
id: validate
|
||||
run: terraform validate -no-color
|
Loading…
x
Reference in New Issue
Block a user