Merge pull request #813 from aiven/rriski-fix-TestPgUpgradeVersion-test #1171
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v6 | |
trunk: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write # For trunk to post annotations | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: trunk-io/trunk-action@v1 | |
codeql_analysis: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: github/codeql-action/init@v3 | |
with: | |
languages: go | |
- uses: github/codeql-action/autobuild@v3 | |
- uses: github/codeql-action/analyze@v3 | |
kustomize_can_build_deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: karancode/kustomize-github-action@master | |
with: | |
kustomize_version: 4.5.7 | |
kustomize_build_dir: config/default | |
kustomize_output_file: deployment.yaml | |
# TODO: remove token once https://github.com/karancode/kustomize-github-action/issues/46 is resolved | |
token: ${{ github.token }} | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }} |