mirror of
https://github.com/robotn/gohook.git
synced 2024-11-22 11:36:47 +08:00
Update go.yml
This commit is contained in:
parent
123f5daf1c
commit
2c5f9b09f6
21
.github/workflows/go.yml
vendored
21
.github/workflows/go.yml
vendored
@ -1,12 +1,15 @@
|
|||||||
name: Go
|
name: Go
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
test:
|
||||||
|
# name: build
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# go: [1.12.x, 1.13.x]
|
||||||
|
os: [macOS-latest, windows-latest] # ubuntu-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: macOS-10.14
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.13
|
- name: Set up Go 1.13
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
@ -19,10 +22,12 @@ jobs:
|
|||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: |
|
run: |
|
||||||
go get -v -t -d ./...
|
go get -v -t -d ./...
|
||||||
if [ -f Gopkg.toml ]; then
|
# if [ -f Gopkg.toml ]; then
|
||||||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
dep ensure
|
# dep ensure
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v .
|
run: go build -v .
|
||||||
|
# - name: Test
|
||||||
|
# run: go test -v .
|
||||||
|
Loading…
Reference in New Issue
Block a user