Skip to content

Fix GitHub workflows with new syntax and add build instructions #49

Fix GitHub workflows with new syntax and add build instructions

Fix GitHub workflows with new syntax and add build instructions #49

Workflow file for this run

name: build
on: pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
id: vars
run: |
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
echo "Using Go version ${goVersion}"
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.vars.outputs.go_version }}
-
name: Download Go modules
run: go mod download
-
name: Go build
run: go build -o /dev/null ./cmd/enpasscli/main.go