From acf5e59b81df2f8359bd3de6a417ee5f095e6412 Mon Sep 17 00:00:00 2001 From: Gaius Date: Wed, 25 May 2022 14:14:03 +0800 Subject: [PATCH] chore: check large files in pull request (#1332) * chore: check large files Signed-off-by: Gaius --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcd688e52..b3adb9389 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,23 @@ env: GO_VERSION: 1.17 jobs: + check: + name: Check + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: Check large files + uses: actionsdesk/lfs-warning@v3.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filesizelimit: "0.1MB" + test: name: Test timeout-minutes: 30 @@ -46,7 +63,7 @@ jobs: name: Build timeout-minutes: 10 runs-on: ubuntu-latest - needs: [test] + needs: [test, check] steps: - name: Set up Go uses: actions/setup-go@v2