Skip to content

Commit 489c942

Browse files
committed
Switch from Travis CI to GitHub Actions
Ubuntu 20.04 has the version of libnetcdf with in-memory support that we want.
1 parent 5707a0d commit 489c942

File tree

2 files changed

+39
-29
lines changed

2 files changed

+39
-29
lines changed

.github/workflows/CI.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)