Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jdudley1123 committed Nov 7, 2024
1 parent bdcbaba commit 43f4825
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build
name: CI

on: [push]

jobs:
build:
ci:

runs-on: ubuntu-latest
env:
Expand All @@ -21,22 +21,20 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: Install dependencies
run: |
sudo apt-get -yqq install libpq-dev build-essential libcurl4-openssl-dev
gem install bundler
bundle install --jobs 4 --retry 3
yarn install
- name: Setup database and run tests
- name: Set up database and run tests
run: |
cp config/database.ci.yml config/database.yml
bundle exec rake db:create db:migrate
Expand All @@ -47,4 +45,3 @@ jobs:
POSTGRES_USER: affordable_housing_monitoring
POSTGRES_PASSWORD: postgres
PGPORT: ${{ job.services.postgres.ports[5432] }}
RAILS_ENV: test

0 comments on commit 43f4825

Please sign in to comment.