limit ci job timeout to 4 minutes

This commit is contained in:
m5r 2021-08-28 00:48:24 +08:00
parent c75ed023a1
commit 3734b2053c

View File

@ -5,35 +5,38 @@ on: [push, pull_request]
jobs:
lint:
name: Lint
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm install
- run: npm ci
- run: npm run lint
test:
name: Test
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm install
- run: npm ci
- run: npm test
build:
name: Compile
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm install
- run: npm ci
- run: npm run build
env:
DATOCMS_API_TOKEN: ${{ secrets.DATOCMS_API_TOKEN }}