Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
esrrhs authored Sep 28, 2021
1 parent 31ebcc8 commit 4b22d08
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
name: Go
on: [push]

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go 1.14
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
go-version: 1.17

- name: Get dependencies
run: |
go get -v -t -d ./...
GO111MODULE=off go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: |
go build -v .
./pingtunnel
run: GO111MODULE=off go build -v ./...

0 comments on commit 4b22d08

Please sign in to comment.