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

29
.github/workflows/check.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Check
on:
push:
branches-ignore:
- 'integration/**'
pull_request:
jobs:
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
- 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 ${{ matrix.check }}