Skip to content

Commit

Permalink
make sure chrome install path is in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Aug 21, 2024
1 parent e731622 commit c5c9150
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,17 @@ jobs:
BUNDLE_WITH: test
BUNDLE_PATH: vendor/bundle
CAS_BASE_URL: ''
CI: 1
FEDORA_TEST_URL: http://fedora:8080/rest
IIIF_BASE_URL: http://localhost/iiif/2
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
PSQL_PASSWORD: spot_test_pw
PSQL_USER: spot_test_user
PSQL_DATABASE: spot_test
PSQL_HOST: database
RAILS_ENV: test
SOLR_TEST_URL: http://solr_admin:solr_password@solr:8983/solr/spot-test
URL: http://localhost:3000
URL_HOST: http://localhost:3000

steps:
-
Expand All @@ -108,9 +110,15 @@ jobs:
-
name: Setup Chrome
uses: browser-actions/setup-chrome@v1
id: setup-chrome
with:
install-dependencies: true
install-chromedriver: true
-
name: Get Chrome bin directory
id: chrome-bin-directory
run:
echo "dirname=$(dirname ${{ steps.setup-chrome.outputs.chrome-path }})" >> "$GITHUB_OUTPUT"
-
name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -150,6 +158,7 @@ jobs:
name: Run tests
run: |
mkdir /tmp/test-results
export PATH="${{ steps.chrome-bin-directory.outputs.dirname }}:$PATH"
bundle exec rspec --backtrace --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
-
name: Publish RSpec report
Expand Down

0 comments on commit c5c9150

Please sign in to comment.