From 60914647f739679b4bedffd926affe1062317659 Mon Sep 17 00:00:00 2001 From: Vincent Gschwend <12810603+neonima@users.noreply.github.com> Date: Sun, 13 Apr 2025 02:09:42 +0200 Subject: [PATCH 1/2] Add auto tag goreleaser --- .github/workflows/release.yml | 5 +---- .goreleaser.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4549cad..9999cc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.24" # Adjust to your desired Go version - - - name: Run Tests - run: go test -v ./... + go-version: "1.24" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..51cc07e --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,12 @@ +project_name: action + +builds: + - skip: true + +release: + github: + owner: neonima + name: action + +archives: + - format: tar.gz From 1b3751873b173f34541c11dabc54785a8fa43081 Mon Sep 17 00:00:00 2001 From: Vincent Gschwend <12810603+neonima@users.noreply.github.com> Date: Sun, 13 Apr 2025 02:09:58 +0200 Subject: [PATCH 2/2] Add pr auto tests --- .github/workflows/pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..14fc7da --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,21 @@ +name: PR Tests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.24" + + - name: Run Tests + run: go test -v ./... \ No newline at end of file