diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 193949d..c9ff33f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,6 @@ on: types: [opened, edited, synchronize] jobs: - list-spec-versions: if: github.event.pull_request.draft == false runs-on: ubuntu-latest @@ -13,7 +12,7 @@ jobs: spec_versions: ${{ steps.list-versions.outputs.spec_versions }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: List spec versions @@ -37,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Find un-copyrighted files @@ -55,7 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Setup editorconfig checker @@ -80,7 +79,7 @@ jobs: spec_version: ${{ fromJson(needs.list-spec-versions.outputs.spec_versions) }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - uses: dorny/paths-filter@v2 @@ -98,6 +97,6 @@ jobs: # if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true' # run: cd tracing/${{ matrix.spec_version }} && cargo test --release --all - name: "Check wasm blob" - if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true' + if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true' run: | ./scripts/check-tracing-runtime.sh ${{ matrix.spec_version }} diff --git a/.github/workflows/create-tracing-runtime.yml b/.github/workflows/create-tracing-runtime.yml index dc98a25..7d62920 100644 --- a/.github/workflows/create-tracing-runtime.yml +++ b/.github/workflows/create-tracing-runtime.yml @@ -11,11 +11,10 @@ on: required: false jobs: - create-tracing-runtime: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: import runtime run: | ./scripts/import-tracing-runtime.sh ${{ github.event.inputs.spec_version }} ${{ github.event.inputs.moonbeam_git_ref }} diff --git a/scripts/import-tracing-runtime.sh b/scripts/import-tracing-runtime.sh index 5ff0a8d..7d41f46 100755 --- a/scripts/import-tracing-runtime.sh +++ b/scripts/import-tracing-runtime.sh @@ -42,4 +42,9 @@ cd .. echo "Running ./scripts/update-tracing-runtime-lock.sh $SPEC_VERSION ..." source ./scripts/update-tracing-runtime-lock.sh $SPEC_VERSION +echo "Format with cargo fmt" +pushd tracing/$SPEC_VERSION +cargo fmt +popd + echo "Done !" diff --git a/scripts/update-tracing-runtime-lock.sh b/scripts/update-tracing-runtime-lock.sh index cd13eda..14cc5f0 100755 --- a/scripts/update-tracing-runtime-lock.sh +++ b/scripts/update-tracing-runtime-lock.sh @@ -13,7 +13,4 @@ echo cargo fetch echo -echo "Removing shared directory in tracing/${VERSION}" -rm -rf shared - -cd ../.. \ No newline at end of file +cd ../..