Skip to content

add version flag

add version flag #4

Workflow file for this run

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Test
on:
push:
branches:
- master
jobs:
test:
name: "go test"
permissions:
id-token: write
contents: read
runs-on: "ubuntu-latest"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
lfs: true
- name: Get latest Go version
id: gover
run: echo goversion=$(awk -F':|-' '!/^#/ {print $2}' .github/dockerfile-for-dependabot/Dockerfile) >> "$GITHUB_OUTPUT"
- name: Setup go
uses: actions/setup-go@v5
cache: true

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

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/go-test.yml (Line: 26, Col: 15): Unexpected value 'cache'
with:
go-version: "${{ steps.gover.outputs.goversion }}"
- name: Test
run: |
go mod download
go test -race -coverprofile=coverage.txt -covermode=atomic