Repository navigation
Reserve transportation reclassification before enqueue #1638
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: | |
| push: | |
| branches: [master, dev] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| javascript: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7.0.1 | |
| - name: Set up Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 18.17.1 | |
| cache: npm | |
| - name: Install JavaScript dependencies | |
| run: npm ci | |
| - name: Run JavaScript tests | |
| run: npm test | |
| rspec: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgis/postgis:17-3.5 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: dawarich_test | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=5 | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| env: | |
| RAILS_ENV: test | |
| DATABASE_HOST: localhost | |
| DATABASE_PORT: "5432" | |
| DATABASE_USERNAME: postgres | |
| DATABASE_PASSWORD: postgres | |
| DATABASE_NAME: dawarich_test | |
| REDIS_URL: redis://localhost:6379 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7.0.1 | |
| - name: Install native dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libgeos-dev librsvg2-bin fonts-dejavu-core fonts-noto-cjk | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Load schema | |
| run: bundle exec rails db:schema:load | |
| - name: Run RSpec | |
| run: bundle exec rspec |