Skip to content

chore: add workflow

chore: add workflow #6

Workflow file for this run

name: go
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
env:
GOPRIVATE: github.com/NextronSystems/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Configure private repositories
run: |

Check failure on line 22 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 22, Col: 20): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN
git config --global url."https://${{ GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.1.16