Skip to content

Commit d58009d

Browse files
Refactor GitHub Actions workflows by deleting obsolete Action-Test.yml and creating separate workflows for Src-Default, Src-WithManifest, and outputs
1 parent ef5bbec commit d58009d

File tree

4 files changed

+105
-73
lines changed

4 files changed

+105
-73
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Action-Test
2+
3+
run-name: 'Action-Test - [${{ 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+
ActionTestSrcDefault:
19+
name: Action-Test [Src-Default] - [${{ matrix.os }}]
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Action-Test
30+
uses: ./
31+
id: action-test
32+
with:
33+
Name: PSModuleTest
34+
WorkingDirectory: tests/srcTestRepo
35+
Settings: SourceCode
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Action-Test
2+
3+
run-name: 'Action-Test - [${{ 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+
ActionTestsSrcWithManifest:
19+
name: Action-Test [Src-WithManifest] - [${{ matrix.os }}]
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Action-Test
30+
uses: ./
31+
id: action-test
32+
with:
33+
Name: PSModuleTest
34+
WorkingDirectory: tests/srcWithManifestTestRepo
35+
Settings: SourceCode
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Action-Test
2+
3+
run-name: 'Action-Test - [${{ 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+
ActionTestOutputs:
19+
name: Action-Test [outputs] - [${{ matrix.os }}]
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v4
28+
29+
- name: Action-Test
30+
uses: ./
31+
id: action-test
32+
with:
33+
Name: PSModuleTest
34+
WorkingDirectory: tests/outputTestRepo
35+
Settings: Module

.github/workflows/Action-Test.yml

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

0 commit comments

Comments
 (0)