-
Notifications
You must be signed in to change notification settings - Fork 45
47 lines (44 loc) · 1.37 KB
/
Copy pathtest.yml
File metadata and controls
47 lines (44 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: test
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu
os: ubuntu-latest
go-version: 'stable'
- name: mac
os: macos-latest
go-version: 'stable'
- name: windows
os: windows-latest
go-version: 'stable'
- name: ubuntu go 1.12
os: ubuntu-latest
go-version: '1.12.x'
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go-version }}
- 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 -