Skip to content

Commit

Permalink
update web4 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Aug 2, 2024
1 parent fbd4779 commit c58c99b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/web4-deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.2/cargo-near-installer.sh | sh
- name: Deploy to production
run: |
cargo near deploy "${{ vars.BOS_DEPLOY_ACCOUNT_ID }}" \
cargo near deploy "buildcommons.near" \
without-init-call \
network-config "mainnet" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.BOS_SIGNER_PUBLIC_KEY }}" \
--signer-public-key "ed25519:BDD3c71kFuzD4jUtZcYyjEwhKjpvecH21zYSqinLXi15" \
--signer-private-key "${{ secrets.BOS_SIGNER_PRIVATE_KEY }}" \
send
36 changes: 36 additions & 0 deletions .github/workflows/web4-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test web4 contract
on:
workflow_call:

defaults:
run:
working-directory: ./web4contract

jobs:
code-formatting:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: cargo fmt --check

code-linter:
name: Code Linter
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo clippy
run: |
rustup component add clippy
cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo test
run: cargo test

0 comments on commit c58c99b

Please sign in to comment.