summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-07 16:41:17 +0200
committerKyren223 <Kyren223@proton.me>2025-01-07 16:41:17 +0200
commitcd34911ce641863c7c16f2d75c8da8c3f13daaf4 (patch)
treeb6f078d90f46354c84d5bcb550590fe2930e00ad
parentc0f55da0c433f6f1851e3717e60b87c16c89844d (diff)
Testing if CI runs tests
-rw-r--r--.github/workflows/ci.yml24
-rw-r--r--internal/packet/packet_test.go1
2 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..d07cc77
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: ci
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ tests:
+ name: Tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v4
+
+ - name: Set up Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: "1.23.2"
+
+ - name: Run tests
+ run: go test ./...
diff --git a/internal/packet/packet_test.go b/internal/packet/packet_test.go
index 874d0bb..70e088a 100644
--- a/internal/packet/packet_test.go
+++ b/internal/packet/packet_test.go
@@ -55,6 +55,7 @@ func testPacketEncodingDecoding(t *testing.T, payload Payload) {
}
func TestPacketFramer(t *testing.T) {
+ require.True(t, false, "Failing on purpose")
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*20)
defer cancel()
framer := NewFramer()