-
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (87 loc) · 2.05 KB
/
ci.yml
File metadata and controls
96 lines (87 loc) · 2.05 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI
run-name: "${{ github.event.repository.name }} | CI | ${{ github.run_id }} | ${{ github.event_name }}"
permissions: read-all
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '*.sln'
- '*.csproj'
- '*.ps1'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/**/*'
- '*.sln'
- '*.csproj'
- '*.ps1'
jobs:
changes:
name: Label Changes
runs-on: [ubuntu-latest]
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write
steps:
- name: Labeler
id: labeler
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b #v6.0.1
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
release-version: ${{ steps.build.outputs.release-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Module
id: build
uses: ./.github/actions/ps-build
with:
release-type: Debug
unit-tests:
name: Unit Tests
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Unit Tests
uses: ./.github/actions/ps-unit-tests
integration-tests:
name: Integration Tests
needs: [build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
permissions:
contents: read
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Integration Tests
uses: ./.github/actions/ps-integration-tests