mirror of
https://github.com/bit1001/tdl.git
synced 2024-11-14 10:24:38 +08:00
26 lines
492 B
YAML
26 lines
492 B
YAML
|
name: master builder
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
paths:
|
||
|
- '**.go'
|
||
|
- 'go.mod'
|
||
|
- 'go.sum'
|
||
|
- '.github/workflows/*.yml'
|
||
|
jobs:
|
||
|
build-and-test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Setup Golang env
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: 1.18
|
||
|
cache: true
|
||
|
- name: Test
|
||
|
run: go test -v ./...
|
||
|
- name: Build
|
||
|
run: go build
|