File tree 2 files changed +39
-29
lines changed
2 files changed +39
-29
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+ name : CI
3
+
4
+ jobs :
5
+ test :
6
+ strategy :
7
+ matrix :
8
+ go-version : [1.14.x, 1.15.x]
9
+ platform : [ubuntu-20.04]
10
+ fail-fast : false
11
+ runs-on : ${{ matrix.platform }}
12
+ env :
13
+ GO111MODULE : on
14
+
15
+ steps :
16
+ - name : Install Go
17
+ uses : actions/setup-go@v1
18
+ with :
19
+ go-version : ${{ matrix.go-version }}
20
+
21
+ - name : Checkout code
22
+ uses : actions/checkout@v1
23
+
24
+ - name : Install libnetcdf
25
+ run : |
26
+ sudo apt-get update
27
+ sudo apt-get install -y libnetcdf-dev
28
+
29
+ - name : Run tests
30
+ run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
31
+
32
+ - name : Sending coverage report to codecov.io
33
+ run : bash <(curl -s https://codecov.io/bash)
34
+
35
+ - name : Check gofmt
36
+ run : |
37
+ gofmt -l .
38
+ test `gofmt -l . | wc -l` = 0
39
+ shell : bash
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments