Skip to content

Fix release workflow #8

Fix release workflow

Fix release workflow #8

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
shell: bash
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v5
- name: Run Lint
run: task lint
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
shell: bash
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download Dependencies
run: go mod download
- name: Run test
run: task test
build-push:
name: Build and Push
needs: [lint, test]
if: github.event_name == 'push' && github.ref_name == 'main'
uses: ./.github/workflows/build_push.yaml
with:
commit: ${{ github.sha }}
tags: develop
secrets: inherit