Skip to content

fix: Uses correct generated token when checking out cli repo in release #140

fix: Uses correct generated token when checking out cli repo in release

fix: Uses correct generated token when checking out cli repo in release #140

Workflow file for this run

name: Lint, test, and build
on:
push:
branches:
- main
pull_request:
types:
- opened
- edited
- synchronize
- reopened
permissions:
# So golangci-lint can read the contents of the lint yaml file
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.20.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.20.x
- name: Test
run: make test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.20.x
- name: Build go binary
run: make build