Skip to content

Commit a85741a

Browse files
committed
Run tests on CI
1 parent 5ab2b18 commit a85741a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/go.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
on:
22
pull_request:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55

66
permissions:
77
contents: write
88

99
jobs:
10-
goreleaser:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
- name: "Run tests"
18+
run: |
19+
go test
20+
21+
release:
1122
runs-on: ubuntu-latest
1223
steps:
1324
- name: Checkout
@@ -28,7 +39,7 @@ jobs:
2839
with:
2940
distribution: goreleaser
3041
# 'latest', 'nightly', or a semver
31-
version: 'latest'
42+
version: "latest"
3243
args: release --clean
3344
env:
3445
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)