Skip to content

update git actions

update git actions #33

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/blockchain-difficulty/src
steps:

Check failure on line 17 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
name: Checkout code
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ${{ env.GOPATH }}/blockchain-difficulty/src
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20
- name: Download dependencies
run: go mod download
- name: Build
run: go build -v cmd/main.go
- name: Test
run: go test -v ./...