Skip to content

Commit

Permalink
Add GitHub Action that builds and tests the code (#120)
Browse files Browse the repository at this point in the history
* Add GitHub Action that builds and tests the code

Signed-off-by: Carolyn Van Slyck <[email protected]>

* Use the latest setup-go action

The v3 version of setup-go has built-in support for smart selection of the proper Go version, and can cache your go modules for you now. Without having to use the cache action directly.

Signed-off-by: Carolyn Van Slyck <[email protected]>
  • Loading branch information
carolynvs authored Jul 6, 2022
1 parent 0d0a846 commit 3db3383
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: build
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Build and Test
run: make all-ci

0 comments on commit 3db3383

Please sign in to comment.