From b3ef7de624e0cee1ca669ba95f78fd4ec10385a1 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 20 Jun 2021 21:47:17 +0200 Subject: [PATCH] migrate: drone CI to github actions --- .drone.yml | 11 ----------- .github/workflows/go.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) delete mode 100644 .drone.yml create mode 100644 .github/workflows/go.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index ee647d8..0000000 --- a/.drone.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -kind: pipeline -type: docker -name: default - -steps: -- name: test - image: golang:1.13 - commands: - - go get ./... - - go test -v -race -cover -coverprofile ./coverage.out ./... \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..b789456 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +name: Go + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -race -v ./... -cover