-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.08 KB
/
test.yml
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
name: Run tests
on: [push, pull_request]
jobs:
test_macos:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install libeditorconfig
run: brew install editorconfig
- name: Build and run tests with existing bindings
run: |
cargo build
cargo test
cargo clean
- name: Build and run tests with auto-generated bindings
run: |
cargo build --features buildtime-bindgen
cargo test --features buildtime-bindgen
test_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install libeditorconfig
run: sudo apt-get update && sudo apt-get install libeditorconfig-dev
- name: Build and run tests with existing bindings
run: |
cargo build
cargo test
cargo clean
- name: Build and run tests with auto-generated bindings
run: |
cargo build --features buildtime-bindgen
cargo test --features buildtime-bindgen