Repository navigation
feat(hooks): add kustomize, kube:apply, and tekton:pipelinerun commands #85
This file contains hidden or 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: Go | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| actions: write | |
| jobs: | |
| go_tests: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| - macos-15 | |
| - ubuntu-24.04-arm | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| fetch-tags: true | |
| # The .wasm files in bin/ are Git LFS objects. Without them, the | |
| # tests and the image get the pointer files. | |
| lfs: true | |
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: latest | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: stable | |
| - name: Test | |
| run: | | |
| go vet ./... | |
| go test ./... | |
| - uses: dominikh/staticcheck-action@024238d2898c874f26d723e7d0ff4308c35589a2 # v1.4.0 | |
| with: | |
| version: "latest" | |
| install-go: false | |
| autorelease: | |
| runs-on: ubuntu-latest | |
| needs: [go_tests] | |
| steps: | |
| - name: "Cut release if CI passes" | |
| if: "${{ github.ref == 'refs/heads/main' }}" | |
| uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 | |
| with: | |
| workflow: "release.yaml" |