-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 877 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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