-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (35 loc) · 1.03 KB
/
ci.yaml
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
name: CI
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
basic:
name: 🧪 Run tests
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Dependency cache
uses: actions/cache@v3
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('./**/*.csproj') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: dotnet restore
- name: Run tests
run: dotnet test /p:CollectCoverage=true
env:
STREAM_SECRET: ${{ secrets.STREAM_API_SECRET }}
STREAM_KEY: ${{ secrets.STREAM_API_KEY }}