1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2024-11-17 17:47:14 +09:00
zbpdata/.github/workflows/ci.yml
2023-04-06 14:32:07 +08:00

30 lines
655 B
YAML

name: CI
on: [ push, pull_request ]
jobs:
golangci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
submodules: 'true'
fetch-depth: 0
- name: Run Check
run: |
echo "ls ./"
ls
rm -rf Wife/*.go Wife/*.md Wife/.git
echo "ls Wife/"
ls Wife/
go mod init updater
sed -i '1,3d' main.go
go mod tidy
go run main.go -c