-
Notifications
You must be signed in to change notification settings - Fork 461
60 lines (57 loc) · 1.82 KB
/
go-tflint-plugin.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
name: TFLint blueprint ruleset
on:
push:
branches:
- 'master'
paths:
- 'tflint-ruleset-blueprint/**'
- '.github/workflows/go-tflint-plugin.yml'
pull_request:
branches:
- 'master'
paths:
- 'tflint-ruleset-blueprint/**'
- '.github/workflows/go-tflint-plugin.yml'
concurrency:
group: '${{github.workflow}}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
unit:
name: ${{ matrix.operating-system }} unit tests
runs-on: ${{ matrix.operating-system }}
defaults:
run:
shell: bash
working-directory: 'tflint-ruleset-blueprint'
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: tflint-ruleset-blueprint/go.mod
cache-dependency-path: tflint-ruleset-blueprint/go.sum
- run: |-
make test
releaser:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'tflint-ruleset-blueprint'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'tflint-ruleset-blueprint/go.mod'
- run: echo "GORELEASER_CURRENT_TAG=v0.0.0" >> $GITHUB_ENV # sample tag for testing goreleaser
- run: echo "${{env.GORELEASER_CURRENT_TAG}}"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
version: latest
args: release --clean --skip=validate,publish
workdir: tflint-ruleset-blueprint