Skip to content

updated ci/cd file

updated ci/cd file #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2 # Set your desired Ruby version here
- name: Install dependencies
run: |
gem install bundler
bundle install
yarn install --check-files
- name: Create creds and master.key
run: |
echo "$RAILS_MASTER_KEY" > config/master.key
chmod 600 config/master.key
- name: Set up credentials
run: cp config/master.key config/credentials.yml.enc
- name: Run tests
run: bundle exec rails rswag:specs:swaggerize # Replace with your test command