From 52bcaae3dea39300a45a6aff0e65bf7f5e49cdbb 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e7a670b9f..620d3f74ad 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,7 +176,13 @@ jobs: restore-keys: | ${{ runner.os }}-node- - - name: npm install and test + - name: npm install (assets) + run: cd assets && npm install && cd .. + + - name: Build assets + run: mix assets.build + + - name: Run e2e tests run: | npm install npm run e2e:test