diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index 40674212b2f..bf3e190598f 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -13,12 +13,16 @@ jobs: - name: Check out the repo uses: actions/checkout@v3 - - name: Download artifact - uses: dawidd6/action-download-artifact@v2.27.0 + - name: Set up Node + uses: actions/setup-node@v3 with: - workflow: frontend.yml - commit: ${{ github.sha }} - name: frontend_${{ github.sha }} + node-version: '16.x' + + - name: Install dependencies + run: yarn + + - name: Build frontend + run: yarn run build - name: Run the build process with Docker uses: addnab/docker-run-action@v3 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index a6ddf08c321..cdd887bbf69 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -17,8 +17,7 @@ jobs: node-version: '16.x' - name: Install dependencies - run: | - yarn + run: yarn - name: Test Javascript run: yarn run test @@ -29,15 +28,6 @@ jobs: name: frontend_coverage path: ./test/unit_test_coverage/clover.xml - - name: Build Javascript - run: yarn build - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: frontend_${{ github.sha }} - path: ./cfgov/static_built/ - coverage: runs-on: ubuntu-latest needs: