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