mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-06 01:15:53 -05:00
update test workflow to use different artifact names for matrix
This commit is contained in:
parent
ada9446619
commit
7226129829
1 changed files with 6 additions and 6 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
@ -50,27 +50,27 @@ jobs:
|
||||||
- name: Upload artifact A
|
- name: Upload artifact A
|
||||||
uses: actions/upload-artifact@v4-beta
|
uses: actions/upload-artifact@v4-beta
|
||||||
with:
|
with:
|
||||||
name: 'Artifact-A'
|
name: Artifact-A-${{ matrix.runs-on }}
|
||||||
path: path/to/artifact-A
|
path: path/to/artifact-A
|
||||||
|
|
||||||
- name: Upload artifact B
|
- name: Upload artifact B
|
||||||
uses: actions/upload-artifact@v4-beta
|
uses: actions/upload-artifact@v4-beta
|
||||||
with:
|
with:
|
||||||
name: 'Artifact-B'
|
name: Artifact-B-${{ matrix.runs-on }}
|
||||||
path: path/to/artifact-B
|
path: path/to/artifact-B
|
||||||
|
|
||||||
# Test downloading a single artifact
|
# Test downloading a single artifact
|
||||||
- name: Download artifact A
|
- name: Download artifact A
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
name: 'Artifact-A'
|
name: Artifact-A-${{ matrix.runs-on }}
|
||||||
path: some/new/path
|
path: some/new/path
|
||||||
|
|
||||||
# Test downloading an artifact using tilde expansion
|
# Test downloading an artifact using tilde expansion
|
||||||
- name: Download artifact A
|
- name: Download artifact A
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
name: 'Artifact-A'
|
name: Artifact-A-${{ matrix.runs-on }}
|
||||||
path: ~/some/path/with/a/tilde
|
path: ~/some/path/with/a/tilde
|
||||||
|
|
||||||
- name: Verify successful download
|
- name: Verify successful download
|
||||||
|
@ -95,8 +95,8 @@ jobs:
|
||||||
|
|
||||||
- name: Verify successful download
|
- name: Verify successful download
|
||||||
run: |
|
run: |
|
||||||
$fileA = "some/other/path/Artifact-A/file-A.txt"
|
$fileA = "some/other/path/Artifact-A-${{ matrix.runs-on }}/file-A.txt"
|
||||||
$fileB = "some/other/path/Artifact-B/file-B.txt"
|
$fileB = "some/other/path/Artifact-B-${{ matrix.runs-on }}/file-B.txt"
|
||||||
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
|
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
|
||||||
{
|
{
|
||||||
Write-Error "Expected files do not exist"
|
Write-Error "Expected files do not exist"
|
||||||
|
|
Loading…
Reference in a new issue