Skip to content

Commit

Permalink
chore: add go build and test actions to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherman authored Aug 29, 2021
1 parent fd182c0 commit 0e594f3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@ on:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: |
make bin/image-cache-daemon bin/warden
- name: Test
run: go test -v ./...

lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 0e594f3

Please sign in to comment.