Skip to content

Simplify CI.

Simplify CI. #4

Workflow file for this run

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
name: Fmt & Build and Test
jobs:
build-test:
steps:

Check failure on line 15 in .github/workflows/fmt-build.yaml

View workflow run for this annotation

GitHub Actions / Fmt & Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/fmt-build.yaml (Line: 15, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Format sources
run: |
test -z $(gofmt -s -l .)
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...