Skip to content

Commit 4dbec0f

Browse files
Add initial test files and configurations for test repositories
1 parent 56ac181 commit 4dbec0f

File tree

99 files changed

+3207
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+3207
-194
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Action-Test [Src-Default]
2+
3+
run-name: "Action-Test [Src-Default] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
jobs:
18+
ActionTest:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
name: Action-Test [Src-Default] - [${{ matrix.os }}]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Initialize environment
30+
uses: PSModule/Initialize-PSModule@main
31+
32+
- name: Action-Test
33+
uses: ./
34+
id: action-test
35+
env:
36+
GITHUB_TOKEN: ${{ github.token }}
37+
with:
38+
Name: PSModuleTest
39+
Path: tests/srcTestRepo
40+
TestType: SourceCode
41+
OS: ${{ matrix.os }}
42+
43+
- name: Status
44+
shell: pwsh
45+
env:
46+
PASSED: ${{ steps.action-test.outputs.passed }}
47+
run: |
48+
Write-Host "Passed: [$env:PASSED]"
49+
if ($env:PASSED -ne 'true') {
50+
exit 1
51+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Action-Test [Src-WithManifest]
2+
3+
run-name: "Action-Test [Src-WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
jobs:
18+
ActionTest:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
name: Action-Test [Src-WithManifest] - [${{ matrix.os }}]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Initialize environment
30+
uses: PSModule/Initialize-PSModule@main
31+
32+
- name: Action-Test
33+
uses: ./
34+
id: action-test
35+
env:
36+
GITHUB_TOKEN: ${{ github.token }}
37+
with:
38+
Name: PSModuleTest
39+
Path: tests/srcWithManifestTestRepo
40+
Test: SourceCode
41+
OS: ${{ matrix.os }}
42+
43+
- name: Status
44+
shell: pwsh
45+
env:
46+
PASSED: ${{ steps.action-test.outputs.passed }}
47+
run: |
48+
Write-Host "Passed: [$env:PASSED]"
49+
if ($env:PASSED -ne 'true') {
50+
exit 1
51+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Action-Test [outputs]
2+
3+
run-name: "Action-Test [outputs] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
workflow_dispatch:
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
jobs:
18+
ActionTest:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
name: Action-Test [outputs] - [${{ matrix.os }}]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Initialize environment
30+
uses: PSModule/Initialize-PSModule@main
31+
32+
- name: Action-Test
33+
uses: ./
34+
id: action-test
35+
env:
36+
GITHUB_TOKEN: ${{ github.token }}
37+
with:
38+
Name: PSModuleTest
39+
Path: tests/outputTestRepo
40+
TestType: Module
41+
OS: ${{ matrix.os }}
42+
43+
- name: Status
44+
shell: pwsh
45+
env:
46+
PASSED: ${{ steps.action-test.outputs.passed }}
47+
run: |
48+
Write-Host "Passed: [$env:PASSED]"
49+
if ($env:PASSED -ne 'true') {
50+
exit 1
51+
}

.github/workflows/Action-Test.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/Auto-Configure.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/Auto-Document.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/Auto-Release.yml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
name: Auto-Release
2-
3-
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
5-
on:
6-
pull_request_target:
7-
branches:
8-
- main
9-
types:
10-
- closed
11-
- opened
12-
- reopened
13-
- synchronize
14-
- labeled
15-
16-
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: true
19-
20-
permissions:
21-
contents: write # Required to create releases
22-
pull-requests: write # Required to create comments on the PRs
23-
24-
jobs:
25-
Auto-Release:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout Code
29-
uses: actions/checkout@v4
30-
31-
- name: Auto-Release
32-
uses: PSModule/Auto-Release@v1
33-
env:
34-
GITHUB_TOKEN: ${{ github.token }}
1+
name: Auto-Release
2+
3+
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on:
6+
pull_request_target:
7+
branches:
8+
- main
9+
types:
10+
- closed
11+
- opened
12+
- reopened
13+
- synchronize
14+
- labeled
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: write
22+
pull-requests: write
23+
24+
jobs:
25+
Auto-Release:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout Code
29+
uses: actions/checkout@v4
30+
31+
- name: Auto-Release
32+
uses: PSModule/Auto-Release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication
35+
with:
36+
IncrementalPrerelease: false

0 commit comments

Comments
 (0)