This repository has been archived on 2024-10-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ltc/.github/workflows/go.yml
2022-03-30 11:01:30 +08:00

29 lines
513 B
YAML

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
#编译
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v3.0.0
with:
go-version: '>=1.18'
check-latest: true
- name: Build
run: go build -v ./...
- name: Test
run: go test -run=Test
- name: Benchmark
run: go test -bench=Benchmark -benchmem