only update type info when it is not present in the newInterfaces #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Set up Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
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 |