Skip to content

Commit 08b74d6

Browse files
Copilotjpayne3506
andcommitted
Add unit test workflow for pull requests
Co-authored-by: jpayne3506 <[email protected]>
1 parent f76f860 commit 08b74d6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Unit Tests
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
10+
merge_group:
11+
types:
12+
- checks_requested
13+
jobs:
14+
unit-tests:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
go-version: ['1.22.x', '1.23.x']
19+
os: [ubuntu-latest, windows-latest]
20+
name: Unit Tests
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ matrix.go-version }}
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
- name: Run unit tests
30+
run: make test-all

0 commit comments

Comments
 (0)