Skip to content

Commit

Permalink
build assets in e2e pipeline
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SteffenDE committed Jan 15, 2024
1 parent 59732a7 commit 7b726e8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 (assets)
run: cd assets && npm install && cd ..

- name: Build assets
run: mix assets.build

- name: Run e2e tests
run: e2e:test

- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 7b726e8

Please sign in to comment.