From ae2f6e902bf145eb9c02c6edf9a7941e4cfce167 Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Wed, 27 Apr 2022 13:37:15 -0700 Subject: [PATCH 1/3] don't use newer version of async-graphql until newer release is fixed --- fuel-core/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuel-core/Cargo.toml b/fuel-core/Cargo.toml index 3fd0d6cbd48..a3e685ae691 100644 --- a/fuel-core/Cargo.toml +++ b/fuel-core/Cargo.toml @@ -19,7 +19,7 @@ test = false [dependencies] anyhow = "1.0" -async-graphql = { version = "2.9", features = [ +async-graphql = { version = "=2.9", features = [ "chrono", "chrono-tz", "tracing", From 6607434e3bb2385de0c982e89c5db38cf5d81e13 Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Wed, 27 Apr 2022 13:59:04 -0700 Subject: [PATCH 2/3] add comment and ci verification --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ fuel-core/Cargo.toml | 2 ++ 2 files changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cde31ad76aa..67b32d57cfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,6 +131,39 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + cargo-publish-dry-run: + needs: cancel-previous-runs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + - uses: Swatinem/rust-cache@v1 + - name: Run fuel-core Cargo Publish dry-run + uses: actions-rs/cargo@v1 + with: + command: publish + args: -p fuel-core --dry-run + - name: Run fuel-client Cargo Publish dry-run + uses: actions-rs/cargo@v1 + with: + command: publish + args: -p fuel-gql-client --dry-run + - name: Notify if Job Fails + uses: ravsamhq/notify-slack-action@v1 + if: always() && github.ref == 'refs/heads/master' + with: + status: ${{ job.status }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: '{workflow} has {status_message}' + message_format: '{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> : <{run_url}|View Run Results>' + footer: '' + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} + cargo-test: needs: cancel-previous-runs runs-on: ubuntu-latest diff --git a/fuel-core/Cargo.toml b/fuel-core/Cargo.toml index a3e685ae691..9847311dbfd 100644 --- a/fuel-core/Cargo.toml +++ b/fuel-core/Cargo.toml @@ -19,6 +19,8 @@ test = false [dependencies] anyhow = "1.0" +# This needs to be pinned as newer versions are incompatible with fuel-core. +# We're waiting for the following resolution: https://github.com/FuelLabs/fuel-core/pull/260#issuecomment-1102435692 async-graphql = { version = "=2.9", features = [ "chrono", "chrono-tz", From 95ac87c722655fa763df6e3eb03f18dd53afce3b Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Wed, 27 Apr 2022 14:00:25 -0700 Subject: [PATCH 3/3] add job reqs --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67b32d57cfd..1ec2dd3e429 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -227,6 +227,7 @@ jobs: - cargo-fmt-check - cargo-clippy - cargo-check + - cargo-publish-dry-run - cargo-test - cargo-test-no-default-features if: github.event_name == 'release' && github.event.action == 'published' @@ -281,6 +282,7 @@ jobs: - cargo-fmt-check - cargo-clippy - cargo-check + - cargo-publish-dry-run - cargo-test - cargo-test-no-default-features if: github.ref == 'refs/heads/master'