Browse Source

Added ci

master v1.0.0
gryffyn 5 months ago
parent
commit
32b8daf32a
Signed by: gryffyn GPG Key ID: 6948DD6514D02BEF
  1. 13
      .drone.yml
  2. 34
      .github/workflows/go.yml

13
.drone.yml

@ -0,0 +1,13 @@
---
kind: pipeline
type: exec
name: build
steps:
- name: test
commands:
- go test
- name: build
commands:
- go build

34
.github/workflows/go.yml

@ -1,34 +0,0 @@
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
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 .
Loading…
Cancel
Save