-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (30 loc) · 897 Bytes
/
test.yml
File metadata and controls
36 lines (30 loc) · 897 Bytes
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
name: Test
on:
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, windows-2025, ubuntu-22.04, ubuntu-24.04]
ruby-version: [2.6, 2.7, 3.0, 4.0]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install Packages
run: bundle install
- name: Test
run: rake
- name: Notify Slack of Failures
uses: Bandwidth/build-notify-slack-action@v2
if: failure() && !github.event.pull_request.draft
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}