Set pointer to nil for null input (#60) #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: go version | |
- run: go test -v | |
- run: cd hjson-cli && go build | |
- if: runner.os == 'Linux' | |
run: hjson-cli/hjson-cli assets/comments_test.hjson | diff assets/sorted/comments_result.hjson - | |
- if: runner.os == 'Linux' | |
run: hjson-cli/hjson-cli -j assets/comments_test.hjson | diff assets/sorted/comments_result.json - | |
- if: runner.os == 'Linux' | |
run: hjson-cli/hjson-cli -preserveKeyOrder assets/comments_test.hjson | diff assets/comments_result.hjson - | |
- if: runner.os == 'Linux' | |
run: hjson-cli/hjson-cli -j -preserveKeyOrder assets/comments_test.hjson | diff assets/comments_result.json - |