Skip to content

feat(auth): implement Device Code login flow and token refresh #21

feat(auth): implement Device Code login flow and token refresh

feat(auth): implement Device Code login flow and token refresh #21

Workflow file for this run

# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT
---
name: Build
"on":
pull_request: null
permissions:
contents: read
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
# With GO_GOLANGCI_LINT disabled in MegaLinter, that workflow's
# revive-only run never compiles the Go packages, so this build/vet/test
# job is required to catch code that does not build.
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
- name: Format check
# gofmt -l lists unformatted files without rewriting them; fail if
# any are found instead of silently reformatting like `go fmt`.
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not gofmt-formatted:"
echo "$unformatted"
exit 1
fi
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...