-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.06 KB
/
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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: ["**"]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ "3.2", "3.3" ]
env:
NOTIFY_APP_NAME: "ChatNotifier"
NOTIFY_SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
NOTIFY_SLACK_NOTIFY_CHANNEL: "oss-notices"
NOTIFY_CURRENT_REPOSITORY_URL: "${{ github.server_url }}/${{ github.repository }}"
NOTIFY_TEST_RUN_ID: "${{ github.run_id }}"
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake
- name: SimpleCov+ Action
uses: joshmfrankel/[email protected]
with:
check_job_name: "Coverage"
github_token: ${{ secrets.GITHUB_TOKEN }}