From 3667e9067a945daba00f6308b8551690c7df49cc Mon Sep 17 00:00:00 2001 From: Preetam Jinka Date: Fri, 21 Jun 2024 14:35:16 -0700 Subject: [PATCH 1/3] chore: add go.mod --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..3127545 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/Cistern/sflow + +go 1.21.0 From 220031857bba949f9f29fb8dea19f1a565fa04cd Mon Sep 17 00:00:00 2001 From: Preetam Jinka Date: Fri, 21 Jun 2024 14:36:37 -0700 Subject: [PATCH 2/3] chore: update go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3127545..cf8ccf8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/Cistern/sflow -go 1.21.0 +go 1.21 From 52842b3dfe7ad80e196b816a8056bcfe2d05b42b Mon Sep 17 00:00:00 2001 From: Preetam Jinka Date: Fri, 21 Jun 2024 14:37:51 -0700 Subject: [PATCH 3/3] chore: rename action --- .github/workflows/go.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4b7aff7..fb4f9d8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,25 +1,21 @@ -# 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: Go on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] jobs: - - build: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.20" - - name: Test - run: go test -v ./... + - name: Test + run: go test -v ./...