Update main.yml #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: 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: rails rswag:specs:swaggerize --pattern spec/requests/**/*.rb,spec/api/**/*.rb,spec/integration/**/*.rb |