-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (38 loc) · 1012 Bytes
/
test.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
name: Test
on:
push:
branches:
- '**'
schedule:
- cron: '0 0 * * MON'
concurrency:
group: '${{ github.ref }}'
cancel-in-progress: true
jobs:
test:
name: 'Test the gem (Ruby ${{ matrix.ruby }})'
runs-on: ubuntu-22.04
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
ruby: ['2.7']
steps:
- uses: actions/checkout@v4
- name: Install the correct Ruby version
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: '3.4.22'
- name: Prepare the virtual environment
uses: hausgold/actions/ci@master
with:
clone_token: '${{ secrets.CLONE_TOKEN }}'
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
settings: '${{ github.repository }}'
target: ci/gem-test
- name: Run the gem tests
run: make test
- name: Upload the code coverage report
run: coverage