Skip to content

Commit 354c012

Browse files
chore: use public runners
1 parent 68cece3 commit 354c012

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ on:
1717

1818
jobs:
1919
test:
20-
runs-on: [self-hosted, windows, x64, philips, servercore-20H2]
20+
runs-on: windows-2019
2121
name: Test
2222
env:
2323
TEST1: Test1
2424
TEST2: Test2
2525
TEST3: ${{ secrets.TEST_SECRET }}
26+
TEST_PATH: "c:/map"
2627
strategy:
2728
matrix:
28-
docker_container: ["mcr.microsoft.com/windows/servercore:20H2"]
29+
docker_container: ["mcr.microsoft.com/windows/servercore:ltsc2019"]
2930

3031
steps:
3132
- name: Checkout
@@ -36,16 +37,18 @@ jobs:
3637
uses: ./
3738
with:
3839
image: ${{ matrix.docker_container }}
40+
mapping_path: 'c:\map'
3941
entrypoint: powershell.exe
40-
env_names: GITHUB_WORKSPACE
42+
env_names: TEST_PATH
4143
run: >-
42-
${{ github.workspace }}\test\run_test.ps1 -testPath "${{ github.workspace }}\test\run_default.Tests.ps1";
44+
c:\map\test\run_test.ps1 -testPath "c:\map\test\run_default.Tests.ps1";
4345
4446
- name: Test_ExtraArgs
4547
uses: ./
4648
with:
4749
image: ${{ matrix.docker_container }}
48-
workspace_path: ${{ github.workspace }}
50+
mapping_path: 'c:\map'
51+
workspace_path: 'c:\map'
4952
extra_args: --entrypoint cmd.exe
5053
run: >-
5154
echo "Hello world";
@@ -57,17 +60,18 @@ jobs:
5760
entrypoint: powershell.exe
5861
env_names: TEST1, TEST2, TEST3
5962
run: >-
60-
${{ github.workspace }}\test\run_test.ps1 -testPath "${{ github.workspace }}\test\environment.Tests.ps1";
63+
c:\map\test\run_test.ps1 -testPath "c:\map\test\environment.Tests.ps1";
6164
6265
- name: Test_WorkPath
6366
uses: ./
6467
with:
6568
image: ${{ matrix.docker_container }}
69+
mapping_path: 'c:\map'
6670
work_path: 'c:\temp'
6771
entrypoint: powershell.exe
6872
memory: 3GB
6973
run: >-
70-
${{ github.workspace }}\test\run_test.ps1 -testPath "${{ github.workspace }}\test\work_path.Tests.ps1";
74+
c:\map\test\run_test.ps1 -testPath "c:\map\test\work_path.Tests.ps1";
7175
7276
- name: Test_MappingPath
7377
uses: ./
@@ -84,15 +88,16 @@ jobs:
8488
uses: ./
8589
with:
8690
image: ${{ matrix.docker_container }}
87-
workspace_path: ${{ github.workspace }}/test
91+
mapping_path: 'c:\map'
92+
workspace_path: 'c:\map\test'
8893
entrypoint: powershell.exe
8994
memory: 3GB
9095
env_names: GITHUB_WORKSPACE
9196
run: >-
92-
${{ github.workspace }}\test\run_test.ps1 -testPath "${{ github.workspace }}\test\workspace_path.Tests.ps1";
97+
c:\map\test\run_test.ps1 -testPath "c:\map\test\workspace_path.Tests.ps1";
9398
9499
validate:
95-
runs-on: [self-hosted, linux, X64, philips]
100+
runs-on: ubuntu-latest
96101
name: Validate
97102
container: mcr.microsoft.com/powershell:latest
98103

.github/workflows/update-readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
update-readme:
88

9-
runs-on: [self-hosted, linux, X64, philips]
9+
runs-on: ubuntu-latest
1010

1111
steps:
1212
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)