Skip to content

Commit cf223af

Browse files
committed
attempt snapshot tests on ubuntu
1 parent 3db6eac commit cf223af

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-latest
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414
- uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0
1515
- name: Build
1616
run: cargo build --locked --workspace
17+
- run: |
18+
sudo apt update
19+
sudo apt install -y xvfb libgl1 libx11-6
1720
- name: Test
18-
run: cargo test --locked
21+
run: xvfb-run --auto-servernum cargo test --locked
1922
- name: Test json_tree_test for simd_json feature
20-
run: cargo test --locked --features=simd_json --no-default-features snapshot_tests
23+
run: xvfb-run --auto-servernum cargo test --locked --features=simd_json --no-default-features snapshot_tests
2124
- name: Clippy
2225
run: cargo clippy
2326
- name: Format

0 commit comments

Comments
 (0)