mirror of
https://github.com/FloatTech/zbpdata.git
synced 2024-11-17 17:47:14 +09:00
30 lines
655 B
YAML
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
|