Skip to content

Commit

Permalink
chore: use github actions as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Apr 1, 2020
1 parent 0ae78b8 commit a5d8c2b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:

build:
name: Build and Run
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Use Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
go get -v -t -d ./...
- name: Build
run: go build ./cmd/semantic-release/

- name: Test
run: go test -v ./...

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo TODO

0 comments on commit a5d8c2b

Please sign in to comment.