diff --git a/.github/workflows/metadata-ci.yml b/.github/workflows/metadata-ci.yml new file mode 100644 index 000000000..ea5a5f436 --- /dev/null +++ b/.github/workflows/metadata-ci.yml @@ -0,0 +1,36 @@ +name: Rust CI + +on: + pull_request: + paths: + - 'ark-metadata/**/*.rs' + - 'ark-metadata/Cargo.toml' + - 'ark-metadata/Cargo.lock' + +jobs: + build_and_test: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Build ark-metadata crate + uses: actions-rs/cargo@v1 + with: + command: build + args: --manifest-path ark-metadata/Cargo.toml --all-features + + - name: Run tests for ark-metadata crate + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path ark-metadata/Cargo.toml --all-features