Skip to content

[pull] master from GoogleCloudPlatform:master #314

[pull] master from GoogleCloudPlatform:master

[pull] master from GoogleCloudPlatform:master #314

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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.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@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
version: latest
args: release --clean --skip=validate,publish
workdir: tflint-ruleset-blueprint