From: Tom Hughes Date: Wed, 21 Dec 2022 19:13:57 +0000 (+0000) Subject: Precompile assets before running tests in actions workflows X-Git-Tag: live~1407 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/72c7d202a8325b4e9054ffc98e8db3928ac4347a Precompile assets before running tests in actions workflows --- diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5f0f0f078..acc19b8c0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,6 +28,7 @@ jobs: run: | docker-compose run --rm web bundle exec rails db:migrate docker-compose run --rm web bundle exec rails i18n:js:export + docker-compose run --rm web bundle exec rails assets:precompile docker-compose run --rm web osmosis --rx docker/null-island.osm.xml --wd host=db database=openstreetmap user=openstreetmap password=openstreetmap validateSchemaVersion=no - name: Test Basic Website run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 702f29264..73ce90b92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,6 +55,8 @@ jobs: run: bundle exec rails i18n:js:export - name: Install node modules run: bundle exec rails yarn:install + - name: Compile assets + run: bundle exec rails assets:precompile - name: Run tests run: bundle exec rails test:all - name: Report completion to Coveralls