-
Notifications
You must be signed in to change notification settings - Fork 66
121 lines (112 loc) · 3 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: CI
on:
push:
paths-ignore:
- 'demo/**'
- 'docs/**'
- '**.md'
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: workarea-commerce/ci/bundler-audit@v1
with:
args: '--ignore CVE-2020-8161'
- uses: workarea-commerce/ci/rubocop@v1
- uses: workarea-commerce/ci/eslint@v1
with:
args: '{admin,core,storefront}/{app,test}/**/*.js'
- uses: workarea-commerce/ci/stylelint@v1
with:
args: '{admin,core,storefront}/{app,test}/**/*.scss'
admin_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd admin && bin/rails test -b
admin_teaspoon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd admin && bin/rails teaspoon
admin_system_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd admin && bin/rails test test/system/**/*_test.rb -b
- uses: actions/upload-artifact@v1
if: failure()
with:
name: Admin Screenshots
path: admin/test/dummy/tmp/screenshots
core_teaspoon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd core && bin/rails teaspoon
core_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd core && bin/rails test test/**/*_test.rb -b
storefront_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd storefront && bin/rails test -b
storefront_teaspoon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd storefront && bin/rails teaspoon
storefront_system_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: cd storefront && bin/rails test test/system/**/*_test.rb -b
- uses: actions/upload-artifact@v1
if: failure()
with:
name: Storefront Screenshots
path: storefront/test/dummy/tmp/screenshots