forked from activeadmin/activeadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (60 loc) · 2.12 KB
/
Copy pathdaily.yaml
File metadata and controls
77 lines (60 loc) · 2.12 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
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
---
name: daily
on:
schedule:
- cron: '1 1 * * *'
jobs:
test:
name: test (${{ matrix.ruby.name }}, ${{ matrix.deps }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ruby: [{ name: jruby-9.3, value: jruby-9.3.4.0 }]
deps: ["rails_61"]
env:
JRUBY_OPTS: -J-Xmx1024m --dev
steps:
- uses: actions/checkout@v2
- name: Configure bundler (default)
run: |
echo "BUNDLE_GEMFILE=Gemfile" >> $GITHUB_ENV
echo "BUNDLE_PATH=$(pwd)/vendor/bundle" >> $GITHUB_ENV
if: matrix.deps == 'rails_61'
- name: Configure bundler (alternative)
run: |
echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.deps }}/Gemfile" >> $GITHUB_ENV
echo "BUNDLE_PATH=$(pwd)/gemfiles/${{ matrix.deps }}/vendor/bundle" >> $GITHUB_ENV
if: matrix.deps != 'rails_61'
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby.value }}
rubygems: 3.3.12
bundler-cache: true
- name: Setup git
run: |
git config --global user.email activeadmin@ci.dummy
git config --global user.name ActiveAdmin
- name: Create test app
run: bin/rake setup
- name: Restore cached RSpec runtimes
uses: actions/cache@v2
with:
path: tmp/parallel_runtime_rspec.log
key: runtimes-rspec-${{ matrix.ruby.value }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_rspec.log') }}
- name: Run RSpec tests
run: |
bin/parallel_rspec spec/
RSPEC_FILESYSTEM_CHANGES=true bin/rspec
- name: Restore cached cucumber runtimes
uses: actions/cache@v2
with:
path: tmp/parallel_runtime_cucumber.log
key: runtimes-cucumber-${{ matrix.ruby.value }}-${{ matrix.deps }}-${{ hashFiles('tmp/parallel_runtime_cucumber.log') }}
- name: Run Cucumber features
run: |
bin/parallel_cucumber --fail-fast
bin/cucumber --profile filesystem-changes
bin/cucumber --profile class-reloading