Add jest to its own action to add concurrency to build
This commit is contained in:
parent
2078391051
commit
5d4cf74047
1 changed files with 20 additions and 2 deletions
22
.github/workflows/full_build.yml
vendored
22
.github/workflows/full_build.yml
vendored
|
@ -115,6 +115,26 @@ jobs:
|
||||||
- name: run notice:js:verify
|
- name: run notice:js:verify
|
||||||
run: |
|
run: |
|
||||||
bin/rails notice:js:verify
|
bin/rails notice:js:verify
|
||||||
|
jest:
|
||||||
|
needs: ['install_yarn']
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
node: [12]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Node.js environment
|
||||||
|
uses: actions/setup-node@v1.4.2
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
name: Use Node package cache
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
bundle-use-node-js-${{ matrix.os }}-${{ matrix.node }}-
|
||||||
|
- name: run jest
|
||||||
|
run: yarn jest
|
||||||
main_build:
|
main_build:
|
||||||
needs: ['install_yarn', 'install_gems']
|
needs: ['install_yarn', 'install_gems']
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -160,5 +180,3 @@ jobs:
|
||||||
run: bin/setup ci
|
run: bin/setup ci
|
||||||
- name: run spec
|
- name: run spec
|
||||||
run: bin/rails spec
|
run: bin/rails spec
|
||||||
- name: run jest
|
|
||||||
run: yarn jest
|
|
Loading…
Reference in a new issue