From 5d4cf7404720ab2b2c199750ed1fe29d88affbf2 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 27 Jun 2020 12:54:52 -0500 Subject: [PATCH] Add jest to its own action to add concurrency to build --- .github/workflows/full_build.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/full_build.yml b/.github/workflows/full_build.yml index 881de358..d270b6c0 100644 --- a/.github/workflows/full_build.yml +++ b/.github/workflows/full_build.yml @@ -115,6 +115,26 @@ jobs: - name: run notice:js:verify run: | 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: needs: ['install_yarn', 'install_gems'] runs-on: ${{ matrix.os }} @@ -160,5 +180,3 @@ jobs: run: bin/setup ci - name: run spec run: bin/rails spec - - name: run jest - run: yarn jest \ No newline at end of file