mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-22 00:20:17 +00:00
Update test.yml
This commit is contained in:
parent
0a1284fe87
commit
3149ab347b
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -27,6 +27,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
|
- run: wget https://github.com/yourkin/fileupload-fastapi/raw/a85a697cab2f887780b3278059a0dd52847d80f3/tests/data/test-5mb.bin
|
||||||
# Test end-to-end by uploading two artifacts and then downloading them
|
# Test end-to-end by uploading two artifacts and then downloading them
|
||||||
# Once upload-artifact v2 is out of preview, switch over
|
# Once upload-artifact v2 is out of preview, switch over
|
||||||
- name: Create artifacts
|
- name: Create artifacts
|
||||||
@ -39,8 +40,8 @@ jobs:
|
|||||||
- name: Upload both art
|
- name: Upload both art
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: 'Artifacts'
|
name: '5mb'
|
||||||
path: path/to
|
path: test-5mb.bin
|
||||||
|
|
||||||
- name: Upload artifact A
|
- name: Upload artifact A
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@ -124,8 +125,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify successful download
|
- name: Verify successful download
|
||||||
run: |
|
run: |
|
||||||
$fileA = "some/other/pathgz/Artifact-A.gz"
|
$fileA = "some/other/pathgz/Artifact-A"
|
||||||
$fileB = "some/other/pathgz/Artifact-B.gz"
|
$fileB = "some/other/pathgz/Artifact-B"
|
||||||
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…
x
Reference in New Issue
Block a user