diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index 6d95f1c..3bb34d7 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -10,7 +10,6 @@ DB_ADAPTER: mysql2 MYSQL_PWD: root RAILS_ENV: test - WICKED_PDF_PATH: vendor/bundle/bin/wkhtmltopdf steps: # Checkout the repo @@ -79,6 +78,10 @@ run: | yarn install + # Figure out where wkhtmltopdf is installed + - name: 'Determine wkhtmltopdf location' + run: echo ::set-env name=WICKED_PDF_PATH::$(echo `bundle exec which wkhtmltopdf`) + # Setup the database - name: 'Setup Test DB' run: bundle exec rake db:setup RAILS_ENV=test diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index cd08ba4..71f752e 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -9,7 +9,13 @@ services: # Postgres installation db: - image: postgres:11 + image: postgres + env: + # Latest version of Postgres has increased security. We can use the default + # user/password in this testing scenario though so use the following env + # variable to bypass this changes: + # https://github.com/docker-library/postgres/issues/681 + POSTGRES_HOST_AUTH_METHOD: trust ports: ['5432:5432'] options: >- --health-cmd pg_isready @@ -84,6 +90,10 @@ ${{ runner.os }}-yarn- ${{ runner.os }}- + # Figure out where wkhtmltopdf is installed + - name: 'Determine wkhtmltopdf location' + run: echo ::set-env name=WICKED_PDF_PATH::$(echo `bundle exec which wkhtmltopdf`) + # Install the JS dependencies - name: 'Yarn Install' run: |