From b125d0c1b7370c6512b9092f8668c5b6103aab9d Mon Sep 17 00:00:00 2001 From: Wilson Hobbs Date: Sun, 20 Oct 2024 03:53:36 -0700 Subject: [PATCH 1/2] Create test.yml --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b76b005 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '^1.23' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From cceffef41754013e510d273c83fd91ecfd6a0f55 Mon Sep 17 00:00:00 2001 From: Wilson Hobbs Date: Sun, 20 Oct 2024 03:53:57 -0700 Subject: [PATCH 2/2] Delete .github/test.yml --- .github/test.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/test.yml diff --git a/.github/test.yml b/.github/test.yml deleted file mode 100644 index 15677e8..0000000 --- a/.github/test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Go Tests - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.2" - - - name: Run tests - run: go test -v ./... -timeout 5s