Skip to content

Go-build-and-test-amd64 #384

Go-build-and-test-amd64

Go-build-and-test-amd64 #384

Workflow file for this run

#Originally from https://raw.githubusercontent.com/intel/multus-cni/master/.github/workflows/go-build-test-amd64.yml
name: Go-build-and-test-amd64
on:
push:
pull_request:
schedule:
- cron: "0 10 * * *" # everyday at 10 am
jobs:
build:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
TARGET: amd64
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: GOARCH="${TARGET}" ./scripts/build.sh
- name: Go test
run: ./scripts/test.sh