Skip to content

go

go #608

Workflow file for this run

name: go
on:
schedule:
- cron: '0 15 * * *'
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: go.mod tidy
run: go mod tidy && git diff --exit-code
- name: license header
run: go run github.com/elastic/[email protected] -d
test:
needs: check
strategy:
matrix:
go:
- 1.22.x
- 1.20.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: elastic/integrations
path: integrations
- uses: actions/setup-go@v5
id: setup_go
with:
go-version: ${{ matrix.go }}
- name: Test
run: go test -v ./...
env:
INTEGRATIONS_DIR: ./integrations