Skip to content

Commit

Permalink
Merge pull request #111 from abema/github-actions
Browse files Browse the repository at this point in the history
GitHub Actions
  • Loading branch information
sunfish-shogi authored Apr 12, 2022
2 parents 58918a6 + 11c1273 commit 3fc263d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
22 changes: 1 addition & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,9 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.14
- image: circleci/golang:1.17
steps:
- checkout
- run: go vet ./...
- run: go test -coverprofile=coverage.txt -covermode=count ./...
- run: go install ./mp4tool
- persist_to_workspace:
root: .
paths:
- .
upload_coverage:
docker:
- image: circleci/golang:1.16
steps:
- attach_workspace:
at: .
- run: go install github.com/mattn/[email protected]
- run: goveralls -coverprofile=coverage.txt -service=circle-ci
workflows:
version: 2
all:
jobs:
- build
- upload_coverage:
requires:
- build
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
go-version: [ 1.16, 1.17, 1.18 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: go vet ./...
- run: go test
- run: go install ./mp4tool

0 comments on commit 3fc263d

Please sign in to comment.