Skip to content

Commit

Permalink
chore(github): run go test at each push
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodangelis committed Nov 13, 2023
1 parent dee39b9 commit d0de395
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: CI
on:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test ./...
build:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
# Required to build changeleg
Expand Down

0 comments on commit d0de395

Please sign in to comment.