Skip to content

add ci workflow

add ci workflow #1

Workflow file for this run

name: ci
on:
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
VERBOSE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
args: --timeout 5m0s

Check failure on line 25 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 25
- name: Run fmt
run: go fmt ./...
- name: Run vet
run: go vet ./...
- name: Run tests
run: go test -v ./...