Skip to content

refactor(jvm): api relocation #107

refactor(jvm): api relocation

refactor(jvm): api relocation #107

Workflow file for this run

name: Cargo Build & Test
on:
push:
branches: ["main"]
paths:
- src/**
- test_data/**
- Cargo.toml
- build.rs
- .github/workflows/**
pull_request:
permissions:
pages: write
id-token: write
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: MokaPot - latest
runs-on: ubuntu-latest
steps:
- name: Setup Rust
run: |
rustup update stable \
&& rustup default stable \
&& rustup component add llvm-tools-preview \
&& cargo install grcov
- uses: actions/setup-java@v3
name: Setup JDK
with:
java-version: 21
distribution: corretto
- uses: actions/checkout@v3
name: Checkout source code
- run: cargo build --all-features --verbose
name: Build
- run: cargo test --all-features --verbose
name: Test
- run: cargo xtask coverage
name: Coverage
- uses: codecov/codecov-action@v3
name: Upload coverage to codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/*.lcov
publish_latest_docs:
name: MokaPot - docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout source code
- run: cargo doc --all-features --no-deps --verbose
name: Build docs
- name: Fix file permissions
run: |
chmod -v -R +rX "target/doc/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- uses: actions/upload-pages-artifact@v2
name: Upload docs as github pages artifact
with:
path: target/doc
- uses: actions/deploy-pages@v2
name: Deploy docs to github pages