Skip to content

workflows: Update go.yml target branch + versions #17

workflows: Update go.yml target branch + versions

workflows: Update go.yml target branch + versions #17

Workflow file for this run

name: Go
on:
push:
branches: [ "**" ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20', '1.20', '1.']
services:
etcd:
image: bitnami/etcd:latest
env:
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://localhost:2379"
ports:
- 2379
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go
- name: Vet
run: make vet
- name: Test
run: make test
env:
TESTING_ETCD_ENDPOINTS: "http://localhost:${{ job.services.etcd.ports[2379] }}"