Skip to content

Commit 7564576

Browse files
committed
ci: replace Travis/AppVeyor with GitHub Actions
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent 7a3544e commit 7564576

File tree

3 files changed

+57
-44
lines changed

3 files changed

+57
-44
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
strategy:
13+
matrix:
14+
goversion: ["1.20", "1.21", "1.22", "1.23", "1.24", "1.25", "1.26"]
15+
steps:
16+
- uses: docker/setup-buildx-action@v3
17+
- uses: docker/bake-action@v5
18+
with:
19+
source: "{{defaultContext}}"
20+
targets: build-all
21+
env:
22+
GO_VERSION: ${{ matrix.goversion }}
23+
test:
24+
runs-on: ubuntu-24.04
25+
steps:
26+
- uses: docker/setup-buildx-action@v3
27+
- uses: docker/bake-action@v5
28+
with:
29+
source: "{{defaultContext}}"
30+
targets: test
31+
env:
32+
COVER_FILENAME: "cover.out"
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
disable_file_fixes: true
37+
files: ./cover.out
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
test-os:
40+
runs-on: ${{ matrix.os }}
41+
strategy:
42+
matrix:
43+
os: [macos-latest, windows-latest]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-go@v5
47+
with:
48+
go-version: stable
49+
- run: go test -v ./...
50+
lint:
51+
runs-on: ubuntu-24.04
52+
steps:
53+
- uses: docker/setup-buildx-action@v3
54+
- uses: docker/bake-action@v5
55+
with:
56+
source: "{{defaultContext}}"
57+
targets: lint-all

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)