Browse Source

feat: tests

Yeuoly 1 year ago
parent
commit
708989be6e
1 changed files with 29 additions and 0 deletions
  1. 29 0
      .github/workflows/tests.yml

+ 29 - 0
.github/workflows/tests.yml

@@ -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 ./...