-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (71 loc) · 1.88 KB
/
ci_budgets.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
name: "[CI] Budgets"
on:
push:
branches:
- develop
- release/*
- "*-stable"
pull_request:
branches-ignore:
- "chore/l10n*"
paths:
- "*"
- ".github/**"
- "decidim-admin/**"
- "decidim-budgets/**"
- "decidim-comments/**"
- "decidim-core/**"
- "decidim-dev/**"
- "decidim-proposals/**"
env:
CI: "true"
RUBY_VERSION: 2.7.5
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-budgets
PARALLEL_TEST_PROCESSORS: 2
jobs:
main:
name: Tests
runs-on: ubuntu-latest
if: "!startsWith(github.head_ref, 'chore/l10n')"
timeout-minutes: 60
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
RUBYOPT: '-W:no-deprecated'
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ./.github/actions/module-rspec
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
name: RSpec
working-directory: ${{ env.DECIDIM_MODULE }}
env:
SIMPLECOV: "true"
- run: ./.github/upload_coverage.sh $DECIDIM_MODULE $GITHUB_EVENT_PATH
name: Upload coverage
- uses: actions/upload-artifact@v2
if: always()
with:
name: screenshots
path: ./spec/decidim_dummy_app/tmp/screenshots
if-no-files-found: ignore