Skip to content

ci(lint): add trunk linting setup #384

ci(lint): add trunk linting setup

ci(lint): add trunk linting setup #384

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
trunk:
if: >
(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: stable
- 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
- 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
- uses: karancode/kustomize-github-action@master
with:
kustomize_version: 4.3.0
kustomize_build_dir: config/default
kustomize_output_file: deployment.yaml
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }}