Skip to content

Revert "remove fa import" #118

Revert "remove fa import"

Revert "remove fa import" #118

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- 'feature/**'
- 'hotfix/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
gem install bundler
bundle install
npm install
- name: Build Vite assets
run: bundle exec rake vite:build
- name: Compile Tailwind CSS
run: bundle exec rails tailwindcss:build
- name: Set up database
run: |
bundle exec rails db:create
bundle exec rails db:schema:load
bundle exec rails db:seed
env:
RAILS_ENV: test
- name: Run tests
run: bundle exec rspec
env:
RAILS_ENV: test
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Build Docker image locally for testing
- name: Build Docker image
run: |
docker build -t myapp:ci-test .