Skip to content

Commit

Permalink
.github/workflows: extend testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile authored Jan 2, 2021
1 parent f5a47fc commit 7ab2008
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Interoperability tests
on: push
jobs:
trigger:
name: Trigger
runs-on: ubuntu-latest
steps:
- name: Trigger interoperability tests in str4d/rage
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: Go tests
on: [push, pull_request]
name: Go tests
jobs:
test:
runs-on: ubuntu-latest
name: Test
strategy:
fail-fast: false
matrix:
go: [1.14.x, 1.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v2
with: { go-version: 1.x }
- uses: actions/checkout@v2
- run: go test -race ./...
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout repository
uses: actions/checkout@v2
# - name: Run analyses
# run: go run analysis.go ./...
- name: Run tests
run: go test -race ./...
3 changes: 2 additions & 1 deletion cmd/age/age_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import (
func TestVectors(t *testing.T) {
files, _ := filepath.Glob("testdata/*.age")
for _, f := range files {
name := strings.TrimSuffix(strings.TrimPrefix(f, "testdata/"), ".age")
_, name := filepath.Split(f)
name = strings.TrimSuffix(name, ".age")
expectFailure := strings.HasPrefix(name, "fail_")
t.Run(name, func(t *testing.T) {
var identities []age.Identity
Expand Down

0 comments on commit 7ab2008

Please sign in to comment.