Set proper timezone in controllers #1622
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: Tests | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install libvips and pdftoppm | |
| run: | | |
| sudo apt-get update -qq -o Acquire::Retries=3 | |
| sudo apt-get install -y --fix-missing -qq -o Acquire::Retries=3 libvips poppler-utils | |
| - name: Install Ruby and run Bundler install with cache | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Set timezone | |
| uses: szenius/[email protected] | |
| with: | |
| timezoneLinux: Europe/Zurich | |
| - name: Rails tests | |
| env: | |
| RAILS_ENV: test | |
| RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
| run: | | |
| bin/rails db:setup | |
| bin/rails test:prepare | |
| bin/rspec |