Skip to content

Commit

Permalink
ci: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colethienes committed Mar 31, 2024
1 parent f396439 commit efff1ca
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Image
name: GitHub Action
on: push

jobs:
Expand All @@ -10,14 +10,26 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
- uses: golangci/golangci-lint-action@v4
with:
version: v1.55

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Test
run: go test `go list ./... | grep -v test`

build-push-image:
runs-on: ubuntu-latest
needs:
- lint
- test
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down

0 comments on commit efff1ca

Please sign in to comment.