Setup, docs, and CI updates #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:13-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - "5432:5432" | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 2s | |
| --health-timeout 2s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: "ruby/setup-ruby@v1" | |
| with: | |
| bundler-cache: true | |
| - name: Install libvips | |
| run: sudo apt-get install -y libvips | |
| - name: Build and run tests | |
| env: | |
| PGHOST: localhost | |
| PGUSER: postgres | |
| PGPASSWORD: postgres | |
| RAILS_ENV: test | |
| RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
| RUBYOPT: --yjit | |
| STANDARDOPTS: "-d" | |
| run: | | |
| bin/setup | |
| bin/rails standard test:all | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: Capybara screenshots | |
| path: ${{ github.workspace }}/tmp/capybara/**/*.png |