Skip to content

Commit

Permalink
Add CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
creekorful committed Nov 22, 2020
1 parent bc100cf commit 23a6b7f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration

on:
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
test:
strategy:
matrix:
go-version: [ 1.14.x, 1.15.x ]
platform: [ ubuntu-latest ]
name: ${{ matrix.platform }} @ Go ${{ matrix.go-version }}
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go ${{ matrix.go-version }}
uses: actions/[email protected]
with:
go-version: ${{ matrix.go-version }}

- name: Set environment
run: |
echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
shell: bash

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: |
go test -v ./...
- name: Update go report card
if: success() && matrix.platform == 'ubuntu-latest'
continue-on-error: true
uses: creekorful/[email protected]

0 comments on commit 23a6b7f

Please sign in to comment.