Skip to content

Build, lint and test trigger-argo-workflow #239

Build, lint and test trigger-argo-workflow

Build, lint and test trigger-argo-workflow #239

name: Build, lint and test `trigger-argo-workflow`
on:
push:
branches:
- main
paths:
- "actions/trigger-argo-workflow/**"
pull_request:
paths:
- "actions/trigger-argo-workflow/**"
merge_group:
jobs:
lint-test-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: actions/trigger-argo-workflow
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
check-latest: true
cache-dependency-path: |
actions/trigger-argo-workflow/go.sum
go-version-file: "actions/trigger-argo-workflow/go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: latest
working-directory: actions/trigger-argo-workflow
- name: Run tests
run: go test -v ./...
- name: Build
run: go build -o trigger-argo-workflow ./...