Skip to content

Commit c43ea42

Browse files
authored
ci: Added GH Workflow for running go tests (#2)
* ci: add go test gh workflow * chore: rename go test job
1 parent ffb30ab commit c43ea42

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci-pr-go-tests.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: CI - PR Go Tests
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
run-go-tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: 1.23
21+
22+
- name: Install dependencies
23+
run: go mod tidy
24+
25+
- name: Run tests
26+
run: go test ./...

0 commit comments

Comments
 (0)