Skip to content

Commit 3fe998e

Browse files
committed
ci: adds unit tests
1 parent bd8766a commit 3fe998e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR run unit and integration tests
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- edited
7+
- labeled
8+
- reopened
9+
- synchronize
10+
11+
jobs:
12+
approve:
13+
name: runs unit and integration tests
14+
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # tag=v4.2.2
18+
- name: Calculate go version
19+
id: vars
20+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
21+
- name: Set up Go
22+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # tag=v6.0.0
23+
with:
24+
go-version: ${{ steps.vars.outputs.go_version }}
25+
- name: Run runs-test
26+
run: make test

0 commit comments

Comments
 (0)