Skip to content

Commit

Permalink
refactor: go.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
idsulik committed Nov 10, 2024
1 parent 77fe0d9 commit 86a7dbb
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:
branches:
- main
tags:
- 'v*' # Triggers the workflow when a tag is pushed
- 'v*'
pull_request:
branches:
- main

jobs:
build:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
Expand All @@ -26,11 +27,24 @@ jobs:
- name: Run tests
run: go test -count=3 -v ./...

build:
needs: test
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Build
run: go build -v ./...

create_release:
needs: build
needs: [test, build]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

Expand Down

0 comments on commit 86a7dbb

Please sign in to comment.