Skip to content

Commit f5a66e4

Browse files
committedDec 23, 2021
CI using Github Actions
Remove defunkt Travis-CI config. Implicitly drops support for Go < 1.9.
1 parent f371098 commit f5a66e4

File tree

3 files changed

+44
-14
lines changed

3 files changed

+44
-14
lines changed
 

‎.github/workflows/go.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
go:
17+
- '1.9'
18+
- '1.10'
19+
- '1.11'
20+
- '1.12'
21+
- '1.13'
22+
- '1.14'
23+
- '1.15'
24+
- '1.16'
25+
- '1.17'
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Go
29+
uses: actions/setup-go@v2
30+
with:
31+
go-version: '${{ matrix.go }}'
32+
- name: 'Build with ${{ matrix.go }}'
33+
run: go build -v ./...
34+
- name: 'Test with ${{ matrix.go }}'
35+
run: go test -v ./...
36+
- name: 'TestRace with ${{ matrix.go }}'
37+
run: go test -race -v ./...
38+
- name: 'Bench with ${{ matrix.go }}'
39+
run: go test -bench=. -benchmem -v ./...
40+
- name: 'BenchRace with ${{ matrix.go }}'
41+
run: go test -bench=. -benchmem -race -v ./...

‎.travis.yml

-11
This file was deleted.

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# goid [![Build Status](https://travis-ci.org/petermattis/goid.svg?branch=master)](https://travis-ci.org/petermattis/goid)
1+
# goid ![Build Status](https://github.com/petermattis/goid/actions/workflows/go.yml/badge.svg)
22

33
Programatically retrieve the current goroutine's ID. See [the CI
4-
configuration](.travis.yml) for supported Go versions. In addition,
5-
gccgo 7.2.1 (Go 1.8.3) is supported.
4+
configuration](.github/workflows/go.yml) for supported Go versions. In
5+
addition, gccgo 7.2.1 (Go 1.8.3) is supported.

0 commit comments

Comments
 (0)
Please sign in to comment.