mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-23 23:18:29 +02:00
test
This commit is contained in:
parent
0bb07896df
commit
494f241b71
1 changed files with 7 additions and 3 deletions
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue