Skip to content

Commit

Permalink
ci: replaced travis by gitub action
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
  • Loading branch information
fredbi committed Oct 3, 2023
1 parent 85dd5c8 commit 4aca999
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 23 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/02-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests
on:
pull_request:
push:
tags:
- v*
branches:
- master
permissions:
contents: read

jobs:
tests:
strategy:
matrix:
go_version: ['1.18', '1.19','oldstable','stable']
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
check-latest: true

- name: Tests
run: go test -v -race -cover -coverprofile=coverage.out -covermode=atomic ./...


#- name: Update Coverage
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: coverage.out
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ func TestPrintDefaults(t *testing.T) {
got := buf.String()
if got != defaultOutput {
fmt.Println("\n" + got)
fmt.Println("\n" + defaultOutput)
fmt.Printf("\n" + defaultOutput)
t.Errorf("got %q want %q\n", got, defaultOutput)
}
}
Expand Down

0 comments on commit 4aca999

Please sign in to comment.