Maps have a collapsible menu #580
Workflow file for this run
This file contains 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
# This workflow uses actions that are not certified by GitHub. They are | |
# provided by a third-party and are governed by separate terms of service, | |
# privacy policy, and support documentation. | |
# | |
# This workflow will install a prebuilt Ruby version, install dependencies, and | |
# run tests and linters. | |
name: "Ruby on Rails CI" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14-alpine | |
ports: | |
- "5432:5432" | |
env: | |
POSTGRES_DB: rails_test | |
POSTGRES_USER: rails | |
POSTGRES_PASSWORD: password | |
env: | |
LANG: en_GB.UTF-8 | |
RAILS_ENV: test | |
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | |
SKIP_JS_BUILD: true # prevent jsbundling-rails from installing and building JS | |
steps: | |
- name: install locale | |
run: | | |
sudo locale-gen en_GB.UTF-8 | |
sudo update-locale LANG=en_GB.UTF-8 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 19 | |
cache: yarn | |
- name: Install Javascript dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build Javascript | |
run: yarn build | |
- name: Compile CSS | |
run: bin/rails dartsass:build | |
- name: Set up database schema | |
run: bin/rails db:schema:load | |
- name: Run tests and linters | |
run: bin/rake |