Skip to content

Commit d554b9b

Browse files
authored
CI: Migrate to GHA (#1021)
* CI: Migrate to GHA * Rename .travis.gofmt.sh to .gha.gofmt.sh * Delete .travis.yml * Delete appveyor.yml * Add caching * Test caching * Revert "Add caching" This reverts commit 0beee42.
1 parent 0d998b9 commit d554b9b

File tree

4 files changed

+43
-35
lines changed

4 files changed

+43
-35
lines changed
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
tests:
15+
name: Go ${{ matrix.go-version }} - ${{ matrix.os }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
go-version: ["1.15"]
21+
os: [ubuntu-latest, windows-latest, macOS-latest]
22+
23+
steps:
24+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
25+
26+
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
27+
with:
28+
go-version: ${{ matrix.go-version }}
29+
30+
- name: Run Tests
31+
run: |
32+
go test -cover ./...
33+
shell: bash
34+
35+
formatting:
36+
name: Go Format
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
41+
42+
- name: Check formatting
43+
run: ./.gha.gofmt.sh

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)