Skip to content

debug

debug #363

Workflow file for this run

name: go-header CI
on:
push:
tags:
- v*
branches:
- main
- chore/ramin/field-alignment
pull_request:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
go-version: ${{ steps.go-version.outputs.go-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Read .go-version file
id: go-version
run: cat .go-version
- name: Read .go-version file
id: go-version

Check failure on line 26 in .github/workflows/go-ci.yml

View workflow run for this annotation

GitHub Actions / go-header CI

Invalid workflow file

The workflow is not valid. .github/workflows/go-ci.yml (Line: 26, Col: 13): The identifier 'go-version' may not be used more than once within the same scope.
run: echo "go-version=$(cat .go-version)" >> $GITHUB_ENV
lint:
needs: [setup]
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ needs.setup.outputs.go-version }}
- name: golangci-lint
uses: golangci/[email protected]
with:
args: --timeout 10m
version: v1.55
skip-pkg-cache: true
skip-build-cache: true
build:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ needs.setup.outputs.go-version }}
- name: Build
run: go build -v ./...
- name: Test & Coverage
run: |
go install github.com/ory/[email protected]
go-acc -o coverage.txt ./... -- -v --race
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt