Skip to content

Update workflows

Update workflows #1

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@v4
with:
version: v1.57
- 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

Check failure on line 74 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Lint and Test

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 74, Col: 11): Input tags is required, but not provided while calling. .github/workflows/main.yaml (Line: 77, Col: 18): Invalid input, image-tag is not defined in the referenced workflow.
with:
commit: ${{ github.sha }}
image-tag: develop
secrets: inherit