this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

start using GitHub Actions as CI

For now, this tests on Ubuntu, MacOS, and Windows, both on the latest Go
1.12 and 1.13. We run the tests both with and without -race.

Three tests needed updating, since they exec the system's "echo" binary.
On Windows, that may use CRLF line endings, which happened on GitHub
Actions. To fix that, match the output with a line regular expression,
instead of via an entire stdout file with LF line endings.

Finally, remove the AppVeyor badge and cloudbuild file, as we won't be
needing those anymore.

Fixes #144.

Closes #147
https://github.com/cuelang/cue/pull/147

GitOrigin-RevId: 869bf85317e078c9a981d585e7896c17452a7827
Change-Id: Ibdb89d7b73c9323dd9627edfdf791d7a3ac42bd2
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/3543
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>

authored by

Daniel Mart? and committed by
Marcel van Lohuizen
a76cbed9 f3cd8481

+27 -16
+2
.gitattributes
··· 1 + # To prevent CRLF breakages on Windows for fragile files, like testdata. 2 + * -text
+22
.github/workflows/test.yml
··· 1 + on: [push, pull_request] 2 + name: Test 3 + 4 + jobs: 5 + test: 6 + strategy: 7 + matrix: 8 + go-version: [1.12.x, 1.13.x] 9 + platform: [ubuntu-latest, macos-latest, windows-latest] 10 + runs-on: ${{ matrix.platform }} 11 + steps: 12 + - name: Install Go 13 + uses: actions/setup-go@v1 14 + with: 15 + go-version: ${{ matrix.go-version }} 16 + - name: Checkout code 17 + uses: actions/checkout@v1 18 + 19 + - name: Test 20 + run: go test ./... 21 + - name: Test with -race 22 + run: go test -race ./...
-1
README.md
··· 14 14 limitations under the License. 15 15 --> 16 16 [![GoDoc](https://godoc.org/cuelang.org/go?status.svg)](https://godoc.org/cuelang.org/go) 17 - [![Appveyor](https://ci.appveyor.com/api/projects/status/0v3ec7p5162hpwpe?svg=true)](https://ci.appveyor.com/project/mpvl/cue) 18 17 [![Go Report Card](https://goreportcard.com/badge/github.com/cuelang/cue)](https://goreportcard.com/report/github.com/cuelang/cue) 19 18 [![Go 1.12](https://img.shields.io/badge/go-1.12-9cf.svg)](https://golang.org/dl/) 20 19 [![platforms](https://img.shields.io/badge/platforms-linux|windows|macos-inactive.svg)]()
-4
cloudbuild.yaml
··· 1 - steps: 2 - - name: golang:1.12 3 - env: ['GO111MODULE=on'] 4 - args: ['go', 'test', './...', '-race' ]
+1 -3
cmd/cue/cmd/testdata/script/cmd_echo.txt
··· 1 1 cue cmd echo 2 - cmp stdout expect-stdout 3 - -- expect-stdout -- 4 - Hello World! 2 + stdout 'Hello World!' 5 3 6 4 -- data.cue -- 7 5 package hello
+1 -4
cmd/cue/cmd/testdata/script/cmd_run.txt
··· 1 1 cue cmd run 2 - cmp stdout run.out 3 - 4 - -- run.out -- 5 - Hello world! 2 + stdout 'Hello world!' 6 3 7 4 -- task.cue -- 8 5 package home
+1 -4
cmd/cue/cmd/testdata/script/cmd_run_list.txt
··· 1 1 cue cmd run_list 2 - cmp stdout run_list.out 3 - 4 - -- run_list.out -- 5 - Hello world! 2 + stdout 'Hello world!' 6 3 7 4 -- task.cue -- 8 5 package home