Update README.md #7
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
name: Linkaroo CI/CD | |
on: [push, pull_request] | |
env: | |
AWS_REGION: ap-southeast-2 | |
RAILS_ENV: test | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
- name: Install Dependencies | |
run: | | |
bundle install | |
# Setup database | |
- name: Setup Test Database | |
run: | | |
bundle exec rails db:create | |
bundle exec rails db:migrate | |
- name: Run Tests | |
run: bundle exec rspec |