mirror of
https://github.com/bettercap/bettercap
synced 2025-08-22 06:23:18 -07:00
go.yml
- name: Setup .NET Core SDK uses: actions/setup-dotnet@v1.4.0 with: # SDK version to use. Example: 2.2.104 dotnet-version: # optional # Optional package source for which to set up authentication. Will consult any existing NuGet.config in the root of the repo and provide a temporary NuGet.config using the NUGET_AUTH_TOKEN environment variable as a ClearTextPassword source-url: # optional # Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository's owner. Only used if a GPR URL is also provided in source-url owner: # optional # Optional NuGet.config location, if your NuGet.config isn't located in the root of the repo. config-file: # optional # Deprecated. Use dotnet-version instead. Will not be supported after October 1, 2019 version: # optional
This commit is contained in:
parent
a39a0018eb
commit
87b22e1aa4
1 changed files with 47 additions and 0 deletions
47
.github/workflows/go.yml
vendored
Normal file
47
.github/workflows/go.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.13
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.13
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
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 .
|
||||
- name: Setup .NET Core SDK
|
||||
uses: actions/setup-dotnet@v1.4.0
|
||||
with:
|
||||
# SDK version to use. Example: 2.2.104
|
||||
dotnet-version: # optional
|
||||
# Optional package source for which to set up authentication. Will consult any existing NuGet.config in the root of the repo and provide a temporary NuGet.config using the NUGET_AUTH_TOKEN environment variable as a ClearTextPassword
|
||||
source-url: # optional
|
||||
# Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository's owner. Only used if a GPR URL is also provided in source-url
|
||||
owner: # optional
|
||||
# Optional NuGet.config location, if your NuGet.config isn't located in the root of the repo.
|
||||
config-file: # optional
|
||||
# Deprecated. Use dotnet-version instead. Will not be supported after October 1, 2019
|
||||
version: # optional
|
Loading…
Add table
Add a link
Reference in a new issue