FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
plot/.github/workflows/ci.yml at master · devBash99/plot · GitHub
devBash99
plot
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
plot
/
.github
/
workflows
/
ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
93 lines (78 loc) · 2.55 KB
Breadcrumbs
plot
/
.github
/
workflows
/
ci.yml
Copy path
File metadata and controls
93 lines (78 loc) · 2.55 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name
:
CI
on
:
pull_request
:
branches
:
[ master ]
jobs
:
build
:
name
:
Build
strategy
:
matrix
:
go-version
:
[1.16.x, 1.15.x]
platform
:
[ubuntu-latest, macos-latest]
runs-on
:
${{ matrix.platform }}
env
:
GO111MODULE
:
on
GOPATH
:
${{ github.workspace }}
DISPLAY
:
"
:99.0
"
EGL_PLATFORM
:
"
x11
"
defaults
:
run
:
working-directory
:
${{ env.GOPATH }}/src/gonum.org/v1/plot
steps
:
-
name
:
Install Go
uses
:
actions/setup-go@v2
with
:
go-version
:
${{ matrix.go-version }}
-
name
:
Cache-Go
uses
:
actions/cache@v1
with
:
path
:
|
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
key
:
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys
:
|
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
path
:
${{ env.GOPATH }}/src/gonum.org/v1/plot
-
name
:
Install Linux packages
if
:
matrix.platform == 'ubuntu-latest'
run
:
|
sudo apt-get update
sudo apt-get install -qq pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev xvfb xdotool
# start a virtual frame buffer
Xvfb :99 -screen 0 1920x1024x24 &
-
name
:
Check copyrights+formatting
run
:
|
# Required for format check.
go get golang.org/x/tools/cmd/goimports
# Required for imports check.
go get gonum.org/v1/tools/cmd/check-imports
# Required for copyright header check.
go get gonum.org/v1/tools/cmd/check-copyright
./.travis/check-copyright.sh
./.travis/check-formatting.sh
-
name
:
Build
run
:
|
go install -v ./...
-
name
:
Test Linux
if
:
matrix.platform == 'ubuntu-latest'
run
:
|
go test -v ./...
test -z "$(gofmt -d .)"
./.travis/check-imports.sh
./.github/workflows/test-coverage.sh
-
name
:
Test Windows
if
:
matrix.platform == 'windows-latest'
run
:
|
go test -v ./...
-
name
:
Test Darwin
if
:
matrix.platform == 'macos-latest'
run
:
|
go test -v ./...
-
name
:
Upload-Coverage
if
:
matrix.platform == 'ubuntu-latest'
uses
:
codecov/codecov-action@v1
Back
|
FazBrowse Home
|
New Git URL