-
-
Notifications
You must be signed in to change notification settings - Fork 776
63 lines (58 loc) · 1.31 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Main
on:
workflow_dispatch:
pull_request:
branches:
- master
paths-ignore:
- 'Packages/**'
- 'ProjectSettings/**'
- '.github/**'
- '.gitattributes'
- '.gitignore'
- '.editorconfig'
- 'LICENSE'
- '**.md'
- '**.yml'
- '**.txt'
- '**.ps1'
push:
branches:
- master
paths-ignore:
- 'Packages/**'
- 'ProjectSettings/**'
- '.github/**'
- '.gitattributes'
- '.gitignore'
- '.editorconfig'
- 'LICENSE'
- '**.md'
- '**.yml'
- '**.txt'
- '**.ps1'
jobs:
RunUnityTests:
name: Run Unity Tests
uses: ./.github/workflows/RunUnityTests.yml
secrets: inherit
#SonarQube:
# name: SonarQube Analysis
# needs: RunUnityTests
# uses: ./.github/workflows/SonarQube.yml
# secrets: inherit
Release:
name: Semantic Release
if: github.event_name == 'push'
needs: RunUnityTests
uses: ./.github/workflows/Semantic.yml
secrets: inherit
DeleteOldWorkflowRuns:
name: Delete Old Workflow Runs
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 15 # Delete runs older than 15 days
keep_minimum_runs: 5 # Keep the last 5 runs