Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #43 from abhinav/workflow
Browse files Browse the repository at this point in the history
Minimal GitHub Workflow for CI
  • Loading branch information
djmitche committed Apr 19, 2023
2 parents f9fef96 + dcd183e commit 7ffce12
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Go

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:

build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ["1.16.x", "1.17.x"]

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Load cached dependencies
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Test
run: go test -v -race ./...

0 comments on commit 7ffce12

Please sign in to comment.