make FE CI more parallel

This commit is contained in:
Pavel Pustovalov
2020-08-30 13:58:22 -05:00
committed by Umputun
parent 0ba8faefc9
commit f72603d967
2 changed files with 39 additions and 4 deletions
+34 -2
View File
@@ -13,7 +13,7 @@ on:
- 'frontend/**'
jobs:
frontend:
frontend-check:
runs-on: ubuntu-latest
steps:
@@ -24,7 +24,39 @@ jobs:
- run: npm ci --loglevel warn
working-directory: ./frontend
- run: npx run-p check lint
- uses: actions/cache@v2
with:
path: ${{ github.workspace }}/frontend/node_modules/.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npx run-p check
working-directory: ./frontend
frontend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm ci --loglevel warn
working-directory: ./frontend
- run: npx run-p lint
working-directory: ./frontend
frontend-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm ci --loglevel warn
working-directory: ./frontend
- run: npm run test
+5 -2
View File
@@ -112,12 +112,15 @@ module.exports = () => ({
},
{
test: /\.js(x?)$/,
use: [{ loader: 'babel-loader', options: { configFile: babelConfigPath } }],
use: [{ loader: 'babel-loader', options: { cacheDirectory: true, configFile: babelConfigPath } }],
...getExcluded(),
},
{
test: /\.ts(x?)$/,
use: [{ loader: 'babel-loader', options: { configFile: babelConfigPath } }, 'ts-loader'],
use: [
{ loader: 'babel-loader', options: { cacheDirectory: true, configFile: babelConfigPath } },
'ts-loader',
],
...getExcluded(),
},
{