chore: check large files in pull request (#1332)
* chore: check large files Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
8ddd197367
commit
acf5e59b81
|
|
@ -14,6 +14,23 @@ env:
|
||||||
GO_VERSION: 1.17
|
GO_VERSION: 1.17
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
@ -46,7 +63,7 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test]
|
needs: [test, check]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue