Skip to content

ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79) #24

ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79)

ci(release): notify workflow-registry on tag publish (G1 / workflow-registry#79) #24

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26'
cache: true
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -race ./...
- name: Run vet
run: go vet ./...
wfctl-strict-contracts:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Validate strict plugin contracts
run: go run github.com/GoCodeAlone/workflow/cmd/wfctl@v0.20.1 plugin validate --file plugin.json --strict-contracts
build:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26'
cache: true
- name: Cross-build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
run: go build -o bin/workflow-plugin-data-engineering-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/workflow-plugin-data-engineering