-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (27 loc) · 1001 Bytes
/
pull_request.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
name: Pull Request
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- run: git checkout -B pr_check
- run: rustup component add clippy
- run: cargo install cargo-release
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: cargo test --verbose -- --nocapture
- run: wasm-pack test --headless --firefox ./adana-script-wasm
- run: wasm-pack test --headless --chrome ./adana-script-wasm
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo release --no-publish --no-tag --allow-branch pr_check --no-push --dependent-version upgrade minor
#- run: cargo publish --dry-run