-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.14 KB
/
quest.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Quest
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
jobs:
lint:
name: Rubocop
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./quest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby w/ same version as image
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- name: Install dependencies
run: |
gem install dip -v 8.0.0
dip infra up
dip provision
- name: Run linter
run: dip rubocop
test:
name: Rspec
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./quest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby w/ same version as image
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- name: Install dependencies
run: |
gem install dip -v 8.0.0
dip infra up
dip provision
- name: Run tests
run: dip rspec --format RspecJunitFormatter --out test-results/rspec.xml --format documentation