소스 검색

Update ci.yaml

AppFlowy.IO 3 년 전
부모
커밋
f8f5b7c233
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      .github/workflows/ci.yaml

+ 8 - 4
.github/workflows/ci.yaml

@@ -8,15 +8,19 @@ jobs:
   rust-lint:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v1
+      - id: component
+        uses: actions-rs/components-nightly@v1
+        with:
+          component: clippy
       - uses: actions-rs/toolchain@v1
         with:
-            toolchain: nightly
-            components: clippy
+            toolchain: ${{ steps.component.outputs.toolchain }}
             override: true
+      - run: rustup component add clippy
+        working-directory: frontend/rust-lib
       - uses: actions-rs/clippy-check@v1
         with:
-          working-directory: frontend/rust-lib
           token: ${{ secrets.GITHUB_TOKEN }}
           args: --all-features