Update go.yml

This commit is contained in:
esrrhs 2021-09-28 16:34:29 +08:00 committed by GitHub
parent 31ebcc8bf8
commit 4b22d08d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,29 @@
name: Go name: Go
on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs: jobs:
build: build:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
- name: Set up Go 1.14 - name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v2
with: with:
go-version: 1.14 go-version: 1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies - name: Get dependencies
run: | run: |
go get -v -t -d ./... GO111MODULE=off 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: | run: GO111MODULE=off go build -v ./...
go build -v .
./pingtunnel