Skip to content

Commit

Permalink
feat: passkey build to gha
Browse files Browse the repository at this point in the history
  • Loading branch information
whalelephant committed Dec 14, 2023
1 parent a2f3cbc commit f16970b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ wasm-plugin-registry = "build --lib --release --target=wasm32-unknown-unknown --

[env]
RUSTFLAGS = "-C link-arg=-s"

[target.x86_64-unknown-linux-gnu]
runner = 'sudo -E' # gha
18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
pull_request:

jobs:
test:
name: Test Suite
contract-multi-test:
name: Contract Multitests
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-Cinstrument-coverage"
Expand All @@ -35,6 +35,20 @@ jobs:
cargo install grcov
rustup component add llvm-tools-preview
- name: Download passkey-cli repo
uses: actions/checkout@v4
with:
repository: nymlab/passkey-cli
path: ./passkey-cli
ref: main
token: ${{ secrets.GH_TOKEN }}

- name: Install passkey-cli
run: |
cd ./passkey-cli
cargo build --release
cp target/release/passkey-cli ../packages/vectis-tests
- name: Run cw-multi-test contract tests
run: cargo test -p vectis-contract-tests -- unit_tests
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
exclude = ["wasmvm/libwasmvm"]
exclude = ["wasmvm/libwasmvm", "passkey-cli"]
members = ["packages/*", "contracts/core/*", "contracts/authenticators/*", "contracts/test-contracts/*" ]
resolver = "2"

Expand Down

0 comments on commit f16970b

Please sign in to comment.