forked from github-release/github-release
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 845 Bytes
/
ci.yml
File metadata and controls
26 lines (26 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@master
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@master
with:
path: './src/github.com/github-release/github-release'
# staticcheck needs this for GOPATH
- run: echo "::set-env name=GOPATH::$GITHUB_WORKSPACE"
- run: echo "::set-env name=PATH::$GITHUB_WORKSPACE/bin:$PATH"
- name: Download dependencies
run: go get -t -v ./...
working-directory: './src/github.com/github-release/github-release'
- name: Run tests
run: make test
working-directory: './src/github.com/github-release/github-release'