From cd34911ce641863c7c16f2d75c8da8c3f13daaf4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 7 Jan 2025 16:41:17 +0200 Subject: Testing if CI runs tests --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ internal/packet/packet_test.go | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml 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() -- cgit v1.3.1