From 3068959c9df7f8bddfd8174777fee2866ed2761f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Mon, 13 Feb 2023 09:27:45 +0100 Subject: [PATCH] Replace deprecated workflow functions (#1108) --- .../actions/publish/publish-rust/action.yml | 17 +++---- .../actions/release/bump-versions/action.yml | 21 ++++----- .github/actions/rust/rust-setup/action.yml | 43 ++++++++++-------- .../rust/sccache/setup-sccache/action.yml | 14 ++---- .../rust/sccache/stop-sccache/action.yml | 9 +--- .github/workflows/audit.yml | 2 +- .github/workflows/build-and-test.yml | 44 +++++++------------ .github/workflows/clippy.yml | 32 +++++--------- .github/workflows/format.yml | 37 +++++----------- .../rust-automatic-release-and-publish.yml | 2 +- .github/workflows/rust-publish-to-crates.yml | 2 +- ...hared-build-and-test-stronghold-nodejs.yml | 3 +- .github/workflows/shared-build-wasm.yml | 11 ++--- .../shared-create-dev-release-pr.yml | 2 +- .github/workflows/shared-create-hotfix-pr.yml | 2 +- .../shared-create-main-release-pr.yml | 2 +- .github/workflows/shared-release.yml | 12 ++--- .github/workflows/test-docs-build.yml | 15 +++---- .../wasm-automatic-release-and-publish.yml | 4 +- 19 files changed, 110 insertions(+), 164 deletions(-) diff --git a/.github/actions/publish/publish-rust/action.yml b/.github/actions/publish/publish-rust/action.yml index 6c6058f75e..33356c001d 100644 --- a/.github/actions/publish/publish-rust/action.yml +++ b/.github/actions/publish/publish-rust/action.yml @@ -13,21 +13,18 @@ inputs: runs: using: "composite" steps: - - name: Install Rust stable toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - toolchain: stable - profile: minimal - override: true + os: ${{ runner.os }} + job: ${{ github.job }} - name: Install cargo-release - uses: actions-rs/cargo@v1 - with: - command: install - args: --version ^0.21 cargo-release + shell: bash + run: cargo install --version ^0.21 cargo-release - name: Publish library to crates.io - shell: sh + shell: bash run: | echo "dry-run: '${{ inputs.dry-run }}'" echo "version: '${{ inputs.version }}'" diff --git a/.github/actions/release/bump-versions/action.yml b/.github/actions/release/bump-versions/action.yml index 63f34214c9..125461df95 100644 --- a/.github/actions/release/bump-versions/action.yml +++ b/.github/actions/release/bump-versions/action.yml @@ -12,24 +12,19 @@ inputs: runs: using: "composite" steps: - - name: Install Rust stable toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - toolchain: stable - profile: minimal - override: true + os: ${{ runner.os }} + job: ${{ github.job }} - name: Install cargo-workspaces - uses: actions-rs/cargo@v1 - with: - command: install - args: --version ^0.2 cargo-workspaces + shell: bash + run: cargo install --version ^0.2 cargo-workspaces - name: Install cargo-edit # to use cargo add and set-version - uses: actions-rs/cargo@v1 - with: - command: install - args: -f --no-default-features --features "add set-version" --version ^0.8 cargo-edit + shell: bash + run: cargo install -f --no-default-features --features "set-version" --version ^0.8 cargo-edit - name: Bump Rust crate versions shell: bash diff --git a/.github/actions/rust/rust-setup/action.yml b/.github/actions/rust/rust-setup/action.yml index f44a32ae47..2f6939ccf5 100644 --- a/.github/actions/rust/rust-setup/action.yml +++ b/.github/actions/rust/rust-setup/action.yml @@ -4,16 +4,23 @@ inputs: target: description: 'Additionally install specified target for this toolchain, ex. x86_64-apple-darwin' required: false - profile: - description: 'Execute rustup set profile {value} before installing the toolchain, ex. minimal' + toolchain: + description: 'Toolchain to install. Default: stable.' + required: false + default: stable + components: + description: 'Comma-separated string of additional components to install e.g. `clippy`, `rustfmt`' required: false - default: 'minimal' os: description: 'OS of the runner, used for cache key construction.' required: true job: description: 'Name of the job, used for cache key construction.' required: true + cargo-cache-enabled: + description: 'Cache cargo folder. Default: false.' + required: false + default: '' target-cache-enabled: description: 'Cache build artifacts from the target path. Default: false.' required: false @@ -33,26 +40,25 @@ runs: using: "composite" steps: - - name: Get current date linux / macos - if: inputs.os == 'macos-latest' || inputs.os == 'ubuntu-latest' - shell: sh + - name: Get current date + shell: bash run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - - name: Get current date windows - if: inputs.os == 'windows-latest' - shell: pwsh - run: echo "CURRENT_DATE=$(Get-Date -Format "yyyy-MM-dd")" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955 + id: toolchain with: - toolchain: stable - override: true - profile: ${{ inputs.profile }} - target: ${{ inputs.target }} + toolchain: ${{ inputs.toolchain }} + targets: ${{ inputs.target }} + components: ${{ inputs.components }} + + - name: Override toolchain + shell: bash + run: rustup override set ${{ steps.toolchain.outputs.name }} - name: Cache cargo uses: actions/cache@v2.1.7 + if: inputs.cargo-cache-enabled == 'true' with: # https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci path: | @@ -72,9 +78,8 @@ runs: # Allows dependencies updated on crates.io between runs to trigger storing an updated cache, # which hashing Cargo.toml files alone does not. - name: Cargo update - uses: actions-rs/cargo@v1 - with: - command: update + run: cargo update + shell: bash - name: Cache build target uses: actions/cache@v2.1.7 diff --git a/.github/actions/rust/sccache/setup-sccache/action.yml b/.github/actions/rust/sccache/setup-sccache/action.yml index 9a80d5ba02..3c29dc661e 100644 --- a/.github/actions/rust/sccache/setup-sccache/action.yml +++ b/.github/actions/rust/sccache/setup-sccache/action.yml @@ -10,14 +10,14 @@ runs: - name: Install sccache (macos-latest) if: inputs.os == 'macos-latest' - shell: sh + shell: bash run: | brew update --preinstall brew install sccache - name: Install sccache (ubuntu-latest) if: inputs.os == 'ubuntu-latest' - shell: sh + shell: bash run: | SCCACHE_DOWNLOAD_LINK=https://github.com/mozilla/sccache/releases/download SCCACHE_VERSION=v0.2.15 @@ -40,15 +40,7 @@ runs: choco install sccache - name: Start sccache - if: inputs.os == 'macos-latest' || inputs.os == 'ubuntu-latest' - shell: sh - run: | - sccache --start-server - sccache -s - - - name: Start sccache - if: inputs.os == 'windows-latest' - shell: 'pwsh' + shell: bash run: | sccache --start-server sccache -s diff --git a/.github/actions/rust/sccache/stop-sccache/action.yml b/.github/actions/rust/sccache/stop-sccache/action.yml index 633be470e8..3698337e88 100644 --- a/.github/actions/rust/sccache/stop-sccache/action.yml +++ b/.github/actions/rust/sccache/stop-sccache/action.yml @@ -9,13 +9,6 @@ runs: steps: - name: Stop sccache - if: inputs.os == 'macos-latest' || inputs.os == 'ubuntu-latest' - shell: sh - run: | - sccache --stop-server || true - - - name: Stop sccache - if: inputs.os == 'windows-latest' - shell: 'pwsh' + shell: bash run: | sccache --stop-server || true \ No newline at end of file diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index ac6b5300d5..91eb824a51 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -22,7 +22,7 @@ jobs: audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 59415007e6..599609c626 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -41,7 +41,7 @@ jobs: outputs: core-modified: ${{ steps.change-detection.outputs.core-modified }} # map step output to job output steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Run change detection @@ -57,7 +57,7 @@ jobs: CORE_MODIFIED=false fi echo CORE_MODIFIED=$CORE_MODIFIED - echo "::set-output name=core-modified::$CORE_MODIFIED" + echo "{core-modified}={$CORE_MODIFIED}" >> $GITHUB_OUTPUT build-and-test: runs-on: ${{ matrix.os }} @@ -79,13 +79,14 @@ jobs: RUSTC_WRAPPER: sccache steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Rust and cache uses: './.github/actions/rust/rust-setup' with: os: ${{ runner.os }} job: ${{ github.job }} + cargo-cache-enabled: true target-cache-enabled: true sccache-enabled: true sccache-path: ${{ matrix.sccache-path }} @@ -117,22 +118,16 @@ jobs: if: matrix.os == 'ubuntu-latest' run: cargo clean - - name: Build all features - uses: actions-rs/cargo@v1 - with: - # Build the library, tests, and examples without running them to avoid recompilation in the run tests step - command: build - args: --workspace --tests --examples --all-features --release + # Build the library, tests, and examples without running them to avoid recompilation in the run tests step + - name: Build with all features + run: cargo build --workspace --tests --examples --all-features --release - name: Start private tangle if: matrix.os == 'ubuntu-latest' uses: './.github/actions/private-tangle/setup' - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace --all-features --release + run: cargo test --workspace --all-features --release - name: Run Rust examples # run examples only on ubuntu for now @@ -165,26 +160,19 @@ jobs: - os: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - toolchain: stable - profile: minimal - override: true + os: ${{ runner.os }} + job: ${{ github.job }} - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --manifest-path ./libjose/Cargo.toml --release + run: cargo build --manifest-path ./libjose/Cargo.toml --release - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --manifest-path ./libjose/Cargo.toml --release + run: cargo test --manifest-path ./libjose/Cargo.toml --release build-wasm: needs: check-for-run-condition @@ -206,7 +194,7 @@ jobs: - os: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Node.js uses: actions/setup-node@v1 diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 7030bef5d6..1655605081 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -20,45 +20,37 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v2 - - name: Install clippy with stable toolchain - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v3 + + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - profile: minimal - toolchain: stable + os: ${{ runner.os }} + job: ${{ github.job }} target: wasm32-unknown-unknown - override: true components: clippy - + # Download a pre-compiled wasm-bindgen binary. - name: Install wasm-bindgen-cli uses: jetli/wasm-bindgen-action@24ba6f9fff570246106ac3f80f35185600c3f6c9 - name: core clippy check - uses: actions-rs/clippy-check@v1 + uses: actions-rs-plus/clippy-check@b09a9c37c9df7db8b1a5d52e8fe8e0b6e3d574c4 with: - token: ${{ secrets.GITHUB_TOKEN }} args: --all-targets --all-features -- -D warnings - name: core - name: Wasm clippy check - uses: actions-rs/clippy-check@v1 + uses: actions-rs-plus/clippy-check@b09a9c37c9df7db8b1a5d52e8fe8e0b6e3d574c4 with: - token: ${{ secrets.GITHUB_TOKEN }} args: --manifest-path ./bindings/wasm/Cargo.toml --target wasm32-unknown-unknown --all-targets --all-features -- -D warnings - name: wasm # Deactivated while the crate is broken, which is the case due to the removal of identity_account_storage. # - name: stronghold-nodejs clippy check - # uses: actions-rs/clippy-check@v1 - # with: - # token: ${{ secrets.GITHUB_TOKEN }} + # uses: actions-rs-plus/clippy-check@b09a9c37c9df7db8b1a5d52e8fe8e0b6e3d574c4 + # with: # args: --manifest-path ./bindings/stronghold-nodejs/Cargo.toml --all-targets --all-features -- -D warnings - # name: stronghold-nodejs - name: libjose clippy check - uses: actions-rs/clippy-check@v1 + uses: actions-rs-plus/clippy-check@b09a9c37c9df7db8b1a5d52e8fe8e0b6e3d574c4 with: - token: ${{ secrets.GITHUB_TOKEN }} args: --manifest-path ./libjose/Cargo.toml --all-targets --all-features -- -D warnings - name: libjose diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 8f6ed8cefc..709eab87c6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,51 +20,36 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # we use nightly to get access to advanced format capabilities - - name: Install rustfmt with nightly toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - profile: minimal toolchain: nightly - override: true + os: ${{ runner.os }} + job: ${{ github.job }} components: rustfmt - name: Install cargo-license-template - uses: actions-rs/cargo@v1 - with: - command: install - args: cargo-license-template + run: cargo install cargo-license-template - name: Install dprint run: npm install -g dprint #run: cargo install dprint # installing from source is slow, ~5 minutes - name: core fmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo +nightly fmt --all -- --check - name: wasm fmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path ./bindings/wasm/Cargo.toml --all -- --check + run: cargo +nightly fmt --manifest-path ./bindings/wasm/Cargo.toml --all -- --check # Deactivated while the crate is broken, which is the case due to the removal of identity_account_storage. # - name: stronghold-nodejs fmt check - # uses: actions-rs/cargo@v1 - # with: - # command: fmt - # args: --manifest-path ./bindings/stronghold-nodejs/Cargo.toml --all -- --check + # run: cargo fmt --manifest-path ./bindings/stronghold-nodejs/Cargo.toml --all -- --check - name: libjose fmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path ./libjose/Cargo.toml --all -- --check + run: cargo +nightly fmt --manifest-path ./libjose/Cargo.toml --all -- --check # Use `dprint` to check Cargo.toml formatting. # To fix, run `dprint fmt` locally. @@ -73,4 +58,4 @@ jobs: dprint check - name: cargo-license-template check - run: cargo license-template --template .license_template --ignore .license_template_ignore --verbose + run: cargo +nightly license-template --template .license_template --ignore .license_template_ignore --verbose diff --git a/.github/workflows/rust-automatic-release-and-publish.yml b/.github/workflows/rust-automatic-release-and-publish.yml index d108be43f9..12825d9149 100644 --- a/.github/workflows/rust-automatic-release-and-publish.yml +++ b/.github/workflows/rust-automatic-release-and-publish.yml @@ -26,7 +26,7 @@ jobs: if: ${{ needs.call-create-release-workflow.outputs.is-release }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Dummy Publish to crates.io # TODO: implement proper publish run: echo beep boop, pretending to publish \ No newline at end of file diff --git a/.github/workflows/rust-publish-to-crates.yml b/.github/workflows/rust-publish-to-crates.yml index b8567c8510..3523cff0cf 100644 --- a/.github/workflows/rust-publish-to-crates.yml +++ b/.github/workflows/rust-publish-to-crates.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.inputs.branch }} - name: Publish to crates.io diff --git a/.github/workflows/shared-build-and-test-stronghold-nodejs.yml b/.github/workflows/shared-build-and-test-stronghold-nodejs.yml index 56dd3b2128..c07c51e64f 100644 --- a/.github/workflows/shared-build-and-test-stronghold-nodejs.yml +++ b/.github/workflows/shared-build-and-test-stronghold-nodejs.yml @@ -94,7 +94,7 @@ jobs: runs-on: ${{ matrix.settings.host }} container: ${{ matrix.settings.container }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v2 @@ -108,6 +108,7 @@ jobs: os: ${{ matrix.settings.host }} job: ${{ github.job }} target: ${{ matrix.settings.target }} + cargo-cache-enabled: true - name: Setup if: ${{ matrix.settings.setup }} diff --git a/.github/workflows/shared-build-wasm.yml b/.github/workflows/shared-build-wasm.yml index 9bbc6d43a0..abf7e65d7b 100644 --- a/.github/workflows/shared-build-wasm.yml +++ b/.github/workflows/shared-build-wasm.yml @@ -34,24 +34,25 @@ jobs: RUSTC_WRAPPER: sccache steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Rust and cache uses: './.github/actions/rust/rust-setup' with: os: ${{ runner.os }} job: ${{ github.job }} + cargo-cache-enabled: true target-cache-enabled: true sccache-enabled: true sccache-path: ${{ matrix.sccache-path }} target-cache-path: bindings/wasm/target - - name: Install WASM toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: - toolchain: stable + os: ${{ runner.os }} + job: ${{ github.job }} target: wasm32-unknown-unknown - override: true # Download a pre-compiled wasm-bindgen binary. - name: Install wasm-bindgen-cli diff --git a/.github/workflows/shared-create-dev-release-pr.yml b/.github/workflows/shared-create-dev-release-pr.yml index 4993548cf8..9de7a27341 100644 --- a/.github/workflows/shared-create-dev-release-pr.yml +++ b/.github/workflows/shared-create-dev-release-pr.yml @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. fetch-depth: 0 diff --git a/.github/workflows/shared-create-hotfix-pr.yml b/.github/workflows/shared-create-hotfix-pr.yml index e7b6e7d123..91326882b9 100644 --- a/.github/workflows/shared-create-hotfix-pr.yml +++ b/.github/workflows/shared-create-hotfix-pr.yml @@ -61,7 +61,7 @@ jobs: fi - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. fetch-depth: 0 diff --git a/.github/workflows/shared-create-main-release-pr.yml b/.github/workflows/shared-create-main-release-pr.yml index 91d3977c40..259d22e59b 100644 --- a/.github/workflows/shared-create-main-release-pr.yml +++ b/.github/workflows/shared-create-main-release-pr.yml @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. fetch-depth: 0 diff --git a/.github/workflows/shared-release.yml b/.github/workflows/shared-release.yml index 6abc32940f..d5ea9f5784 100644 --- a/.github/workflows/shared-release.yml +++ b/.github/workflows/shared-release.yml @@ -62,7 +62,7 @@ jobs: current-version: ${{ steps.determine-version.outputs.current-version }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. fetch-depth: 0 @@ -78,7 +78,7 @@ jobs: IS_RELEASE=true echo IS_RELEASE=$IS_RELEASE echo IS_RELEASE=$IS_RELEASE >> $GITHUB_ENV - echo "::set-output name=is-release::$IS_RELEASE" + echo "{is-release}={$IS_RELEASE}" >> $GITHUB_OUTPUT if [[ $(echo $CURRENT_VERSION | grep -w -P '${{ inputs.pre-release-tag-regex }}') ]]; then IS_PRE_RELEASE=true PRE_RELEASE_IDENTIFIER=$(echo $CURRENT_VERSION | perl -pe '/${{ inputs.pre-release-tag-regex }}/; $_ = "$+{pre_release}\n"') @@ -107,16 +107,16 @@ jobs: echo IS_PRE_RELEASE=$IS_PRE_RELEASE echo IS_PRE_RELEASE=$IS_PRE_RELEASE >> $GITHUB_ENV - echo "::set-output name=is-pre-release::$IS_PRE_RELEASE" + echo "{is-pre-release}={$IS_PRE_RELEASE}" >> $GITHUB_OUTPUT echo PRE_RELEASE_IDENTIFIER=$PRE_RELEASE_IDENTIFIER echo PRE_RELEASE_IDENTIFIER=$PRE_RELEASE_IDENTIFIER >> $GITHUB_ENV - echo "::set-output name=pre-release-identifier::$PRE_RELEASE_IDENTIFIER" + echo "{pre-release-identifier}={$PRE_RELEASE_IDENTIFIER}" >> $GITHUB_OUTPUT echo CURRENT_VERSION=$CURRENT_VERSION echo CURRENT_VERSION=$CURRENT_VERSION >> $GITHUB_ENV - echo "::set-output name=current-version::$CURRENT_VERSION" + echo "{current-version}={$CURRENT_VERSION}" >> $GITHUB_OUTPUT echo PREVIOUS_VERSION=$PREVIOUS_VERSION echo PREVIOUS_VERSION=$PREVIOUS_VERSION >> $GITHUB_ENV - echo "::set-output name=previous-version::$PREVIOUS_VERSION" + echo "{previous-version}={$PREVIOUS_VERSION}" >> $GITHUB_OUTPUT echo EXCLUDE_ARG=$EXCLUDE_ARG echo EXCLUDE_ARG=$EXCLUDE_ARG >> $GITHUB_ENV diff --git a/.github/workflows/test-docs-build.yml b/.github/workflows/test-docs-build.yml index 6463e7ab78..9d53995a72 100644 --- a/.github/workflows/test-docs-build.yml +++ b/.github/workflows/test-docs-build.yml @@ -27,17 +27,14 @@ jobs: yarn build # docs.rs also uses nightly so it makes sense to mirror that - - name: Install Rust nightly toolchain - uses: actions-rs/toolchain@v1 + - name: Setup Rust + uses: './.github/actions/rust/rust-setup' with: toolchain: nightly - override: true - + os: ${{ runner.os }} + job: ${{ github.job }} + - name: Test Rust Documentation - uses: actions-rs/cargo@v1 env: RUSTDOCFLAGS: "-D warnings --cfg docsrs" - with: - command: doc - toolchain: nightly - args: --all-features --no-deps --workspace + run: cargo +nightly doc --all-features --no-deps --workspace diff --git a/.github/workflows/wasm-automatic-release-and-publish.yml b/.github/workflows/wasm-automatic-release-and-publish.yml index 39f5738294..e6c782e337 100644 --- a/.github/workflows/wasm-automatic-release-and-publish.yml +++ b/.github/workflows/wasm-automatic-release-and-publish.yml @@ -36,7 +36,7 @@ jobs: needs: [call-create-release-workflow, build-wasm] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Release to npm uses: './.github/actions/publish/publish-wasm' with: @@ -61,7 +61,7 @@ jobs: # needs: [call-create-release-workflow, build-stronghold-nodejs] # steps: # - name: Checkout - # uses: actions/checkout@v2 + # uses: actions/checkout@v3 # - name: Release to npm # uses: './.github/actions/publish/publish-stronghold-nodejs' # with: