Skip to content

demo ready, doc to be completed #60

demo ready, doc to be completed

demo ready, doc to be completed #60

Workflow file for this run

name: Lint and Build

Check failure on line 1 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

(Line: 25, Col: 3): The workflow must contain at least one job with no dependencies.
on:
push:
## do not lint and build when tagged, we already do that in push to master
tags-ignore:
- '*'
branches:
- '*'
pull_request:
branches: ['main', 'master']
jobs:
# lint:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Run golangci-lint
# uses: reviewdog/action-golangci-lint@v2
# with:
# go_version: "1.24.3"
# golangci_lint_flags: "--timeout=5m0s"
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.24.3'
- name: Install dependencies
run: go get ./...
- name: Test
run: go test -v ./... --race
- name: Build
run: go build -v ./...