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:
27
.github/workflows/check-source-formatting.yml
vendored
27
.github/workflows/check-source-formatting.yml
vendored
@@ -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
|
||||
27
.github/workflows/check-types.yml
vendored
27
.github/workflows/check-types.yml
vendored
@@ -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
|
||||
@@ -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 }}
|
||||
27
.github/workflows/lint.yml
vendored
27
.github/workflows/lint.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user