]> git.lizzy.rs Git - rust.git/blobdiff - .github/workflows/metrics.yaml
Merge #8666
[rust.git] / .github / workflows / metrics.yaml
index e51c62bb4cda0c813ab2927a13fc1e096c9aa844..d189ce9c901d2fe958bcc5b574590db8c45f2945 100644 (file)
@@ -1,4 +1,4 @@
-name: rustdoc
+name: metrics
 on:
   push:
    branches:
@@ -7,23 +7,17 @@ on:
 env:
   CARGO_INCREMENTAL: 0
   CARGO_NET_RETRY: 10
-  RUSTFLAGS: -D warnings
+  RUSTFLAGS: "-D warnings -W unreachable-pub"
   RUSTUP_MAX_RETRIES: 10
 
 jobs:
-  rustdoc:
+  metrics:
     runs-on: ubuntu-latest
 
     steps:
     - name: Checkout repository
       uses: actions/checkout@v2
 
-    - name: Checkout metrics repository
-      uses: actions/checkout@v2
-      with:
-        repository: "rust-analyzer/metrics"
-        path: "target/metrics"
-
     - name: Install Rust toolchain
       uses: actions-rs/toolchain@v1
       with:
@@ -35,4 +29,4 @@ jobs:
     - name: Collect metrics
       run: cargo xtask metrics
       env:
-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}