Remove redundant job from pipeline #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
release: | |
name: Build and release | |
timeout-minutes: 2 | |
runs-on: ubuntu-latest | |
services: | |
azurite: | |
image: mcr.microsoft.com/azure-storage/azurite | |
ports: | |
- 10000:10000 | |
# No simple reciept to curl it, so, let's just wait for it to be up | |
options: >- | |
--health-cmd "sleep 5" | |
--health-interval 3s | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.17 | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
- name: Test | |
run: go test -v ./... | |
- name: Get tag name | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
id: vars | |
run: echo "name=${GITHUB_REF#refs/*/v}" >> $GITHUB_OUTPUT | |
- name: Create release | |
if: steps.vars.outputs.tag != null | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
prerelease: false | |
draft: false |