mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-14 21:50:25 +00:00
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
on: [push, pull_request]
|
|
name: Test
|
|
jobs:
|
|
e2e-dependencies:
|
|
name: Run 'dependencies' end-to-end test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: dependencies e2e test
|
|
working-directory: e2e/dependencies/consumer
|
|
run: |
|
|
cargo t
|
|
tsc bindings/* --noEmit
|
|
e2e-workspace:
|
|
name: Run 'workspace' end-to-end test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: workspace e2e test
|
|
working-directory: e2e/workspace
|
|
run: |
|
|
cargo t
|
|
tsc parent/bindings/* --noEmit
|
|
|
|
readme-up-to-date:
|
|
name: Check that README.md is up-to-date
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: Check that README.md is up-to-date
|
|
working-directory: ts-rs
|
|
run: |
|
|
cargo install cargo-readme
|
|
diff -u ../README.md <(cargo readme)
|
|
|
|
test:
|
|
name: Test ts-rs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features --manifest-path ts-rs/Cargo.toml
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --all-features --manifest-path ts-rs/Cargo.toml |