Skip to content

chore: add action workflow for test (#23) #2

chore: add action workflow for test (#23)

chore: add action workflow for test (#23) #2

Workflow file for this run

name: CI on push&pr
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
cache: false #消除未找到go.sum缓存文件的警告
go-version: '1.21.0'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test