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.
2 parents 5be641f + c92a291 commit ac3b72fCopy full SHA for ac3b72f
.github/workflows/unit-tests.yaml
@@ -6,12 +6,14 @@ on:
6
- "**.go"
7
- go.mod
8
- go.sum
9
+ - scripts/ci/**
10
pull_request:
11
branches: [ main ]
12
paths:
13
14
15
16
17
18
jobs:
19
build:
@@ -27,8 +29,5 @@ jobs:
27
29
with:
28
30
go-version: ${{ matrix.go-version }}
31
- - name: Build
- run: go build cmd
32
-
33
- - name: Run unit tests
34
- run: make test WHAT=unit
+ - name: Run scripts/ci/presubmits/unit-tests
+ run: scripts/ci/presubmits/unit-tests
scripts/ci/presubmits/unit-tests
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+set -o errexit
4
+set -o nounset
5
+set -o pipefail
+REPO_ROOT="$(git rev-parse --show-toplevel)"
+cd ${REPO_ROOT}
+# Build
+go build cmd
+# Run unit tests
+make test WHAT=unit
0 commit comments