Update grafusion #10
Workflow file for this run
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: Build & Test Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup go-junit-report | |
run: go install github.com/jstemmer/go-junit-report/v2@latest | |
- name: Build | |
run: make gen-go | |
- name: Test | |
run: make test-go | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Mod Download | |
run: go mod download | |
- name: Build | |
run: make build-go | |
lint: | |
name: Lint & Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: make gen-go | |
- run: make lint-go |