about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-13 08:21:54 +0000
committerbors <bors@rust-lang.org>2022-06-13 08:21:54 +0000
commit17b7ab004fd67f186b5822bf6c42c16896802c4b (patch)
tree2396a162a226e248e495693647e192371b4c184a
parentb95ce0eada0b12e5d9a642d1c83b584443e5d83c (diff)
parentc6d04ec20bd3c7017b0d45201bc3e4d1a64ee361 (diff)
downloadrust-17b7ab004fd67f186b5822bf6c42c16896802c4b.tar.gz
rust-17b7ab004fd67f186b5822bf6c42c16896802c4b.zip
Auto merge of #8988 - xFrednet:8947-test-monster-in-bors-ci, r=flip1995
Test metadata collection in Bors CI workflow

This PR adds a new check to bors CI workflows, which ensures that the metadata collection success, when it's run as part of the `deploy` script. I've only added it to bors workflows, as the runtime will be high while it'll also succeed most of the time. This is a preparation for rust-lang/rust-clippy#8947.

---

changelog: none

r? `@ghost`
-rw-r--r--.github/workflows/clippy_bors.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml
index 9b3fd3ddfeb..b8ea424ef34 100644
--- a/.github/workflows/clippy_bors.yml
+++ b/.github/workflows/clippy_bors.yml
@@ -143,6 +143,25 @@ jobs:
       env:
         OS: ${{ runner.os }}
 
+  metadata_collection:
+    needs: base
+    runs-on: ubuntu-latest
+
+    steps:
+     # Setup
+    - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
+      with:
+        github_token: "${{ secrets.github_token }}"
+
+    - name: Checkout
+      uses: actions/checkout@v3.0.2
+
+    - name: Install toolchain
+      run: rustup show active-toolchain
+
+    - name: Test metadata collection
+      run: cargo collect-metadata
+
   integration_build:
     needs: changelog
     runs-on: ubuntu-latest