-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.23 KB
/
default.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: Default
on: # yamllint disable-line rule:truthy
push:
branches:
- main
permissions:
contents: read
jobs:
build-pages:
name: Build Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: .go-version
cache: true
- name: Download dependencies
run: go mod download
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.*
terraform_wrapper: false
- name: Setup external dependencies
run: make deps
- name: Acceptance Coverage
run: TESTARGS=-coverprofile=cover.out make test/acc
- name: Coverage badge and html
run: ./.github/scripts/cov-badge-and-html.sh
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
deploy-pages:
name: Deploy Pages
runs-on: ubuntu-latest
needs: build-pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4