-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 1.01 KB
/
test.yml
File metadata and controls
40 lines (36 loc) · 1.01 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
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 ]
dotnet: [6.0.x, 7.0.x]
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run functional tests
env:
# Required for multiple target frameworks in the StandardTests project.
DOTNET: ${{ matrix.dotnet }}
run: dotnet test Bandwidth.Iris.Tests
notify_for_failures:
name: Notify for Failures
needs: [test]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Notify Slack of Failures
uses: Bandwidth/build-notify-slack-action@v2
with:
job-status: failure
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}