This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
css update #294
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: | |
paths-ignore: | |
- 'docs/**' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
- name: Install dependencies | |
run: | | |
bundle install --jobs 4 | |
bundle lock --add-platform x86_64-linux | |
- name: set database | |
run: | | |
bin/rails db:migrate:reset | |
bin/rails db:seed | |
# Add or replace test runners here | |
- name: Run tests | |
run: bin/rails test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
- name: Install dependencies | |
run: | | |
bundle install --jobs 4 | |
bundle lock --add-platform x86_64-linux | |
- name: run Rubocop | |
run: bin/bundle exec rubocop |