Skip to content

disable go test

disable go test #5

Workflow file for this run

name: Build and Test
on: push
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Lint Go Code
run: |
go get -u golang.org/x/lint/golint
find ./ -name "*.go" |xargs -IFILE gofmt -s -w FILE
# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: 1.18
# - run: go test ./...
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, test]

Check failure on line 35 in .github/workflows/go.yaml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/go.yaml (Line: 35, Col: 19): Job 'build' depends on unknown job 'test'.
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: go build