From b858cb1b39b8df5beff33452539f5f1336975788 Mon Sep 17 00:00:00 2001 From: Steffen Deusch Date: Mon, 15 Jan 2024 22:46:21 +0100 Subject: [PATCH] build assets in e2e pipeline We want to run the e2e tests with the latest assets without the need to commit them to the repository. Otherwise we would not see test failures from changes to the js code as early as possible. --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e7a670b9f..8da8cc34d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,7 +166,7 @@ jobs: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} - name: Install dependencies - run: mix deps.get --only e2e + run: mix deps.get --only e2e --only dev - name: Restore npm cache uses: actions/cache@v2 @@ -176,10 +176,14 @@ jobs: restore-keys: | ${{ runner.os }}-node- - - name: npm install and test - run: | - npm install - npm run e2e:test + - name: npm install + run: npm install + + - name: Build assets + run: mix assets.build + + - name: Run e2e tests + run: e2e:test - uses: actions/upload-artifact@v3 if: always()