mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-19 22:40:25 +00:00
33 lines
902 B
YAML
33 lines
902 B
YAML
on: [push, pull_request]
|
|
name: Test
|
|
jobs:
|
|
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 |