diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eeb30e4..42e40b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,14 @@ name: test -on: [push, pull_request] + +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + jobs: test: runs-on: ${{ matrix.os }} @@ -8,7 +17,10 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable - run: go version - run: go test -v - run: cd hjson-cli && go build diff --git a/assets/comments2/strings4_result.hjson b/assets/comments2/strings4_result.hjson new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/comments2/strings4_result.hjson @@ -0,0 +1 @@ +"" diff --git a/assets/comments2/strings4_result.json b/assets/comments2/strings4_result.json new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/comments2/strings4_result.json @@ -0,0 +1 @@ +"" diff --git a/assets/comments3/strings4_result.hjson b/assets/comments3/strings4_result.hjson new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/comments3/strings4_result.hjson @@ -0,0 +1 @@ +"" diff --git a/assets/comments3/strings4_result.json b/assets/comments3/strings4_result.json new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/comments3/strings4_result.json @@ -0,0 +1 @@ +"" diff --git a/assets/failStr9a_test.hjson b/assets/failStr9a_test.hjson new file mode 100644 index 0000000..229b94d --- /dev/null +++ b/assets/failStr9a_test.hjson @@ -0,0 +1,4 @@ +[ +[ += +[['''''' diff --git a/assets/sorted/strings4_result.hjson b/assets/sorted/strings4_result.hjson new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/sorted/strings4_result.hjson @@ -0,0 +1 @@ +"" diff --git a/assets/sorted/strings4_result.json b/assets/sorted/strings4_result.json new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/sorted/strings4_result.json @@ -0,0 +1 @@ +"" diff --git a/assets/strings4_result.hjson b/assets/strings4_result.hjson new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/strings4_result.hjson @@ -0,0 +1 @@ +"" diff --git a/assets/strings4_result.json b/assets/strings4_result.json new file mode 100644 index 0000000..e16c76d --- /dev/null +++ b/assets/strings4_result.json @@ -0,0 +1 @@ +"" diff --git a/assets/strings4_test.hjson b/assets/strings4_test.hjson new file mode 100644 index 0000000..9cad736 --- /dev/null +++ b/assets/strings4_test.hjson @@ -0,0 +1 @@ +'''''' diff --git a/assets/testlist.txt b/assets/testlist.txt index f884d59..9794f11 100644 --- a/assets/testlist.txt +++ b/assets/testlist.txt @@ -70,6 +70,7 @@ failStr6c_test.hjson failStr6d_test.hjson failStr7a_test.hjson failStr8a_test.hjson +failStr9a_test.hjson int64_test.hjson kan_test.hjson keys_test.hjson @@ -85,6 +86,7 @@ passSingle_test.hjson stringify1_test.hjson strings2_test.hjson strings3_test.hjson +strings4_test.hjson strings_test.hjson trail_test.hjson stringify/quotes_all_test.hjson