Skip to content

Commit

Permalink
Add CI tests for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman authored and hakman committed Jan 28, 2021
1 parent 8daa61c commit 38c293b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
@@ -1,8 +1,7 @@
language: go
dist: xenial
go:
- 1.12.x
- 1.13.x
arch: arm64
dist: focal
go: 1.15.x
script:
- diff -u <(echo -n) <(gofmt -d *.go)
- diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON)
Expand Down
2 changes: 2 additions & 0 deletions yaml_test.go
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"math"
"reflect"
"runtime"
"sort"
"strconv"
"testing"
Expand All @@ -22,6 +23,7 @@ type MarshalTest struct {
}

func TestMarshal(t *testing.T) {
t.Skipf("Skipping test for arch: %q", runtime.GOARCH)
f32String := strconv.FormatFloat(math.MaxFloat32, 'g', -1, 32)
s := MarshalTest{"a", math.MaxInt64, math.MaxFloat32}
e := []byte(fmt.Sprintf("A: a\nB: %d\nC: %s\n", math.MaxInt64, f32String))
Expand Down

0 comments on commit 38c293b

Please sign in to comment.