generated from PSModule/Template-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 2.83 KB
/
Action-Test.yml
File metadata and controls
83 lines (71 loc) · 2.83 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
name: Action-Test
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
ActionTestBasic:
name: Action-Test - [Basic]
runs-on: ubuntu-latest
steps:
# Need to check out as part of the test, as its a local action
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# Upload artifact from tests:
- name: Upload artifact [Environments-macOS-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Environments-macOS-CodeCoverage
path: ./tests/CodeCoverage/Environments-macOS-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Upload artifact [Environments-Windows-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Environments-Windows-CodeCoverage
path: ./tests/CodeCoverage/Environments-Windows-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Upload artifact [Module-macOS-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Module-macOS-CodeCoverage
path: ./tests/CodeCoverage/Module-macOS-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Upload artifact [Module-Windows-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: Module-Windows-CodeCoverage
path: ./tests/CodeCoverage/Module-Windows-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Upload artifact [MyTests-macOS-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: MyTests-macOS-CodeCoverage
path: ./tests/CodeCoverage/MyTests-macOS-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Upload artifact [MyTests-Windows-CodeCoverage]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: MyTests-Windows-CodeCoverage
path: ./tests/CodeCoverage/MyTests-Windows-CodeCoverage
retention-days: 1
if-no-files-found: error
- name: Action-Test
uses: ./
with:
StepSummary_Mode: Full
CodeCoveragePercentTarget: 50