Update test.yml

This commit is contained in:
Austin Sasko 2022-03-18 17:44:34 -04:00 committed by GitHub
parent 0a1284fe87
commit 3149ab347b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ jobs:
with:
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
# Once upload-artifact v2 is out of preview, switch over
- name: Create artifacts
@ -39,8 +40,8 @@ jobs:
- name: Upload both art
uses: actions/upload-artifact@v1
with:
name: 'Artifacts'
path: path/to
name: '5mb'
path: test-5mb.bin
- name: Upload artifact A
uses: actions/upload-artifact@v1
@ -124,8 +125,8 @@ jobs:
- name: Verify successful download
run: |
$fileA = "some/other/pathgz/Artifact-A.gz"
$fileB = "some/other/pathgz/Artifact-B.gz"
$fileA = "some/other/pathgz/Artifact-A"
$fileB = "some/other/pathgz/Artifact-B"
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
{
Write-Error "Expected files do not exist"