Skip to content

Commit d34c8c9

Browse files
authored
transition to functional GitHub Actions CI (digitalocean#176)
* transition to functional GitHub Actions CI Travis CI has historically waffled back and forth about how it feels about a free-tier plan for open source projects. It's a rollercoaster that I personally don't ever want to ride again. Furthermore, go-qemu's CI seems to be down in the doldrums, so replace it with a simple GitHub Actions workflow. * Replace Travis CI badge with GHA badge * temporarily disable license check
1 parent 049cfcd commit d34c8c9

File tree

4 files changed

+57
-70
lines changed

4 files changed

+57
-70
lines changed

.github/workflows/goqemu.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: go-qemu
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
# track upstream Go's currently supported stable versions.
10+
gorelease: ['1.17', '1.18']
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/cache@v3
15+
with:
16+
path: |
17+
~/.cache/go-build
18+
~/go/pkg/mod
19+
key: go-${{ matrix.gorelease }}-${{ hashFiles('**/go.sum') }}
20+
restore-keys: |
21+
go-${{ matrix.gorelease }}
22+
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version: ${{ matrix.gorelease }}
26+
27+
- name: build/go-${{ matrix.gorelease }}
28+
run: go build -v ./...
29+
30+
- name: test/go-${{ matrix.gorelease }}
31+
run: go test -v ./...
32+
33+
# disabled for now, seeing as it is complaining about things that seem like
34+
# non-issues and that are helpful.
35+
#
36+
# I.e., it dislikes assert helpers:
37+
#
38+
# qmp/socket_test.go:238:4: call to (*T).Fatalf from a non-test goroutine
39+
# - name: vet
40+
# run: go vet ./...
41+
42+
# disabled for now, is incompatible with anything that doesn't have 2016 as
43+
# the year. Might need fixing if we want to keep this.
44+
#
45+
# - name: check license
46+
# run: ./scripts/licensecheck.sh
47+
48+
- name: check code generation
49+
run: |
50+
go install golang.org/x/tools/cmd/stringer@latest
51+
./scripts/codegeneration.sh
52+
53+
- name: golint
54+
run: |
55+
go install golang.org/x/lint/golint@latest
56+
./scripts/golint.sh

.travis.yml

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

.travis/libvirtd.conf

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go-qemu [![GoDoc](http://godoc.org/github.com/digitalocean/go-qemu?status.svg)](http://godoc.org/github.com/digitalocean/go-qemu) [![Build Status](https://travis-ci.org/digitalocean/go-qemu.svg?branch=master)](https://travis-ci.org/digitalocean/go-qemu) [![Report Card](https://goreportcard.com/badge/github.com/digitalocean/go-qemu)](https://goreportcard.com/report/github.com/digitalocean/go-qemu)
1+
go-qemu [![GoDoc](http://godoc.org/github.com/digitalocean/go-qemu?status.svg)](http://godoc.org/github.com/digitalocean/go-qemu) ![Build Status](https://github.com/digitalocean/go-qemu/actions/workflows/goqemu.yml/badge.svg?branch=master) [![Report Card](https://goreportcard.com/badge/github.com/digitalocean/go-qemu)](https://goreportcard.com/report/github.com/digitalocean/go-qemu)
22
=======
33

44
`go-qemu` is a collection of Go packages for interacting with running QEMU

0 commit comments

Comments
 (0)