|
@@ -0,0 +1,29 @@
|
|
|
+name: Run Tests
|
|
|
+
|
|
|
+on:
|
|
|
+ pull_request:
|
|
|
+ branches:
|
|
|
+ - main
|
|
|
+ push:
|
|
|
+ branches:
|
|
|
+ - main
|
|
|
+
|
|
|
+concurrency:
|
|
|
+ group: test-amd64-${{ github.head_ref || github.run_id }}
|
|
|
+ cancel-in-progress: true
|
|
|
+
|
|
|
+
|
|
|
+jobs:
|
|
|
+ test:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+
|
|
|
+ - name: Set up Golang 1.20
|
|
|
+ uses: actions/setup-go@v5
|
|
|
+ with:
|
|
|
+ go-version: 1.20
|
|
|
+
|
|
|
+ - name: Run tests
|
|
|
+ run: go test -v ./...
|