chore(main): release 2.17.0 (#1212) #4062
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: Lint | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
tags: | |
- 'v*' | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
super-linter: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout konvoy-image-builder repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Set environment Variables from Dotenv | |
uses: c-py/action-dotenv-to-setenv@v5 | |
with: | |
env-file: .github/super-linter.env | |
- name: Run Super-Linter | |
uses: super-linter/super-linter@v5 | |
env: | |
DEFAULT_BRANCH: main | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# NOTE(jongiddy) super-linter is broken for Packer HCL files | |
# https://github.com/github/super-linter/pull/1707 | |
# This can be removed when a release > 4.2.2 exists. | |
VALIDATE_TERRAGRUNT: false | |
# we don't need a _pedantic_ natural language linter | |
VALIDATE_NATURAL_LANGUAGE: false | |
# we use terraform to provision *test* infrastructure that is deleted | |
VALIDATE_TERRAFORM_TFLINT: false | |
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'pull_request' }} | |
golangci-lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout konvoy-image-builder repository | |
uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
with: | |
fail_on_error: true | |
reporter: github-pr-review | |
go_version_file: 'go.mod' |