Skip to content

Commit 79e116a

Browse files
authored
Merge pull request #46 from jehiah/ci_46
Move CI from travis CI -> Github Action
2 parents 6850417 + 99a2015 commit 79e116a

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Go package
2+
3+
on:
4+
push: {branches: [master]}
5+
pull_request: {branches: [master]}
6+
7+
jobs:
8+
ci:
9+
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: 'stable'
18+
cache: 'true'
19+
20+
- name: Test
21+
run: go test -v ./...

.github/workflows/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
permissions:
6+
contents: write
7+
packages: write
8+
9+
jobs:
10+
releases-matrix:
11+
name: release linux/amd64
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
goos: [linux, darwin]
16+
goarch: [amd64, arm64]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: wangyoucao577/go-release-action@v1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
goos: ${{ matrix.goos }}
23+
goarch: ${{ matrix.goarch }}

.travis.yml

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

0 commit comments

Comments
 (0)