mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
CI: consolidate check actions
This commit is contained in:
29
.github/workflows/check.yml
vendored
Normal file
29
.github/workflows/check.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user