This commit is contained in:
Austin Sasko 2022-08-22 14:16:35 -04:00
parent 0bb07896df
commit 494f241b71

View file

@ -27,7 +27,9 @@ jobs:
with:
node-version: 12.x
- run: wget https://github.com/yourkin/fileupload-fastapi/raw/a85a697cab2f887780b3278059a0dd52847d80f3/tests/data/test-5mb.bin
- run: |
wget https://github.com/yourkin/fileupload-fastapi/raw/a85a697cab2f887780b3278059a0dd52847d80f3/tests/data/test-10mb.bin
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
@ -36,12 +38,14 @@ jobs:
mkdir -p path/to/artifact-B
echo "Lorem ipsum dolor sit amet" > path/to/artifact-A/file-A.txt
echo "Hello world from file B" > path/to/artifact-B/file-B.txt
mkdir bins
mv *.bin bins/
- name: Upload both art
uses: actions/upload-artifact@v2
with:
name: '5mb'
path: test-5mb.bin
name: bins
path: ./bins/
- name: Upload artifact A
uses: actions/upload-artifact@v2