summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r--.github/workflows/build.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 0000000..b3ba675
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,26 @@
+name: Build
+
+on:
+ pull_request:
+ branches: ['main']
+
+jobs:
+
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ go-version: [1.19, '1.20']
+
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-go@v3
+ with:
+ go-version: ${{ matrix.go-version }}
+ check-latest: true
+
+ - run: |
+ go build ./...
+ go test -run=^$ ./...