forked from cli/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.51 KB
/
go.yml
File metadata and controls
65 lines (56 loc) · 1.51 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Tests
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Check out code
uses: actions/checkout@v2
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -race ./...
# catch tests that are not well-isolated from the user's environment
env:
GH_TOKEN: ENVTOKEN
GITHUB_TOKEN: ENVTOKEN
GH_ENTERPRISE_TOKEN: ENVTOKEN
GITHUB_ENTERPRISE_TOKEN: ENVTOKEN
GH_REPO: ENVOWNER/ENVREPO
GH_HOST: envhost.net
GH_EDITOR: env-editor
GIT_EDITOR: env-editor
VISUAL: env-editor
EDITOR: env-editor
BROWSER: env-browser
DEBUG: 1
GH_PAGER: envpager
PAGER: envpager
GLAMOUR_STYLE: envstyle.json
NO_COLOR: 1
CLICOLOR: 1
CLICOLOR_FORCE: 1
GH_NO_UPDATE_NOTIFIER: 1
- name: Build
run: go build -v ./cmd/gh
build-minimum:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Build
env:
CGO_ENABLED: '0'
run: go build -v ./cmd/gh