-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.16 KB
/
parallel_ci.yml
File metadata and controls
52 lines (47 loc) · 1.16 KB
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
name: Parallel CI
on:
workflow_call:
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.1"
bundler-cache: true
- name: Run Brakeman
run: bundle exec brakeman --no-pager
- name: Run Bundler Audit
run: |
bundle exec bundler-audit check --update
parallel-test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
services:
memcached:
image: memcached:1.6.32
ports:
- 11211/udp
env:
LOG_LEVEL: "error"
MYSQL_HOST: "127.0.0.1"
MYSQL_DATABASE: datacite
MYSQL_USER: root
ES_HOST: "localhost:9200"
ELASTIC_PASSWORD: "AnUnsecurePassword123"
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.1"
bundler-cache: true
- name: Run Specs
run: bundle exec rspec
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}