CI: consolidate check actions

This commit is contained in:
Jesse Chan
2020-09-05 12:38:02 +08:00
parent dc906adfab
commit e8f8ddc80c
4 changed files with 5 additions and 84 deletions

View File

@@ -1,27 +0,0 @@
name: Check source formatting
on:
push:
branches-ignore:
- 'integration/**'
pull_request:
jobs:
check-source-formatting:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: cp config.cli.js config.js
- run: npm install
- run: npm run check-source-formatting

View File

@@ -1,27 +0,0 @@
name: Check types
on:
push:
branches-ignore:
- 'integration/**'
pull_request:
jobs:
check-types:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: cp config.cli.js config.js
- run: npm install
- run: npm run check-types

View File

@@ -1,4 +1,4 @@
name: Check pre-compiled i18n
name: Check
on:
push:
@@ -7,12 +7,14 @@ on:
pull_request:
jobs:
check-compiled-i18n:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [14]
check: [check-compiled-i18n, check-source-formatting, check-types, lint]
steps:
- uses: actions/checkout@v2
@@ -24,4 +26,4 @@ jobs:
- run: cp config.cli.js config.js
- run: npm install
- run: npm run check-compiled-i18n
- run: npm run ${{ matrix.check }}

View File

@@ -1,27 +0,0 @@
name: Lint
on:
push:
branches-ignore:
- 'integration/**'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: cp config.cli.js config.js
- run: npm install
- run: npm run lint