Skip to content

Commit

Permalink
feat: Set up GitHub Actions CI pipeline for backen
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Jan 23, 2024
1 parent 58358b0 commit 5b88a1b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Continuous Integration

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

jobs:
backend:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version

- name: Install dependencies
run: bundle install

- name: Set up test database
run: |
cp config/database.yml.travis config/database.yml
bundle exec rake db:create db:schema:load
- name: Run tests
run: bundle exec rake test

frontend:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '12.x'

- name: Install dependencies
run: yarn install

- name: Run tests
run: yarn test

0 comments on commit 5b88a1b

Please sign in to comment.