From ff97b8549753369d7cfa766a577ccebfe487fce5 Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Wed, 21 Aug 2024 01:00:42 +0200 Subject: [PATCH] ci: split ci and release jobs --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++ .github/workflows/{go.yml => release.yml} | 2 -- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml rename .github/workflows/{go.yml => release.yml} (98%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..74280d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Go Build and Release + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: ./go.mod + + - name: Run tests + run: go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/release.yml similarity index 98% rename from .github/workflows/go.yml rename to .github/workflows/release.yml index 0e255c8..3726e58 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,6 @@ on: branches: ["main"] tags: - "v*" - pull_request: - branches: ["main"] jobs: test: