From c58c99b3551c03a4c0e8d3a6b67264c057de1e61 Mon Sep 17 00:00:00 2001 From: Megha-Dev-19 <100185149+Megha-Dev-19@users.noreply.github.com> Date: Fri, 2 Aug 2024 22:00:24 +0530 Subject: [PATCH] update web4 deploy --- .github/workflows/web4-deploy-production.yml | 4 +-- .github/workflows/web4-test.yml | 36 ++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/web4-test.yml diff --git a/.github/workflows/web4-deploy-production.yml b/.github/workflows/web4-deploy-production.yml index deacac1..764e305 100644 --- a/.github/workflows/web4-deploy-production.yml +++ b/.github/workflows/web4-deploy-production.yml @@ -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 diff --git a/.github/workflows/web4-test.yml b/.github/workflows/web4-test.yml new file mode 100644 index 0000000..a2d5d47 --- /dev/null +++ b/.github/workflows/web4-test.yml @@ -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