From 96ea17d8ddfe841a11896c8e3846328e39e24a27 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Wed, 7 Aug 2024 12:30:14 +0300 Subject: [PATCH] Added github actions files Signed-off-by: Andrei Baltariu --- .github/workflows/actions.yml | 29 +++++++++++++++++++ .../on_pull_request_build_contracts.yml | 13 +++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/actions.yml create mode 100644 .github/workflows/on_pull_request_build_contracts.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..de1052c --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [ master, step-* ] + pull_request: + branches: [ master, step-* ] + workflow_dispatch: + +permissions: + actions: write + checks: write + contents: write + id-token: write + issues: write + discussions: write + pull-requests: write + statuses: write + +jobs: + contracts: + name: Contracts + uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.2.0 + with: + rust-toolchain: stable + coverage-args: --ignore-filename-regex='/.cargo/git' --output ./coverage.md + secrets: + token: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/on_pull_request_build_contracts.yml b/.github/workflows/on_pull_request_build_contracts.yml new file mode 100644 index 0000000..68af298 --- /dev/null +++ b/.github/workflows/on_pull_request_build_contracts.yml @@ -0,0 +1,13 @@ +name: On pull request, build contracts + +on: + pull_request: + +permissions: + contents: write + +jobs: + build: + uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v3.2.0 + with: + image_tag: v8.0.0