Skip to content

fix: upgrade cloudevents to latest if on go1.18 or later #604

fix: upgrade cloudevents to latest if on go1.18 or later

fix: upgrade cloudevents to latest if on go1.18 or later #604

Workflow file for this run

name: Go Lint CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.13', '1.16', '1.18']
os: [ubuntu-latest, macos-latest] # windows-latest doesn't support find -wholename
exclude:
- os: macos-latest
go: 1.13
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Format
run: "find . -not \\( \\( -wholename './.git' \\) -prune \\) -name '*.go' | xargs gofmt -s -d"