forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.56 KB
/
ci_core.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
name: "[CI] Core"
on:
push:
branches:
- develop
- release/*
- "*-stable"
pull_request:
branches-ignore:
- "chore/l10n*"
paths:
- "*"
- ".github/**"
- "decidim-api/**"
- "decidim-core/**"
- "decidim-dev/**"
- "packages/**"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build_app:
uses: ./.github/workflows/build_app.yml
secrets: inherit
name: Build test application
main:
strategy:
fail-fast: false
matrix:
test:
- command: bundle exec parallel_test --type rspec --pattern spec/lib
name: "Lib specs"
- command: bundle exec parallel_test --type rspec --pattern spec/system
name: "System specs"
- command: bundle exec parallel_test --type rspec --pattern spec/ --exclude-pattern 'spec/(system|lib|tasks)'
name: "Tests without system, lib and tasks specs"
- command: bundle exec parallel_test --type rspec --pattern spec/tasks --exclude-pattern 'spec/tasks/decidim_tasks_webpacker_spec.rb'
name: "Tasks specs"
- command: bundle exec rspec spec/tasks/decidim_tasks_webpacker_spec.rb
name: "Webpacker tasks specs"
needs: build_app
name: ${{ matrix.test.name }}
uses: ./.github/workflows/test_app.yml
secrets: inherit
with:
working-directory: "decidim-core"
test_command: ${{ matrix.test.command }}
bullet_n_plus_one: false
bullet_unused_eager_loading: false