We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd8766a commit 3fe998eCopy full SHA for 3fe998e
.github/workflows/unit-test.yml
@@ -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