|
|
@ -23,12 +23,13 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set Node.js 12.x
|
|
|
|
- name: Setup Node 16
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
node-version: 16.x
|
|
|
|
|
|
|
|
cache: 'npm'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
run: npm ci
|
|
|
@ -36,15 +37,15 @@ jobs:
|
|
|
|
- name: Compile
|
|
|
|
- name: Compile
|
|
|
|
run: npm run build
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
|
|
|
|
- name: npm test
|
|
|
|
|
|
|
|
run: npm test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
|
|
|
|
- name: Format
|
|
|
|
- name: Format
|
|
|
|
run: npm run format-check
|
|
|
|
run: npm run format-check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
|
|
|
|
run: npm run test
|
|
|
|
|
|
|
|
|
|
|
|
# Test end-to-end by uploading two artifacts and then downloading them
|
|
|
|
# Test end-to-end by uploading two artifacts and then downloading them
|
|
|
|
- name: Create artifact files
|
|
|
|
- name: Create artifact files
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -85,11 +86,9 @@ jobs:
|
|
|
|
path/to/dir-[23]/*
|
|
|
|
path/to/dir-[23]/*
|
|
|
|
!path/to/dir-3/*.txt
|
|
|
|
!path/to/dir-3/*.txt
|
|
|
|
|
|
|
|
|
|
|
|
# Verify artifacts. Switch to download-artifact@v2 once it's out of preview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Download Artifact #1 and verify the correctness of the content
|
|
|
|
# Download Artifact #1 and verify the correctness of the content
|
|
|
|
- name: 'Download artifact #1'
|
|
|
|
- name: 'Download artifact #1'
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: 'Artifact-A'
|
|
|
|
name: 'Artifact-A'
|
|
|
|
path: some/new/path
|
|
|
|
path: some/new/path
|
|
|
@ -109,7 +108,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
# Download Artifact #2 and verify the correctness of the content
|
|
|
|
# Download Artifact #2 and verify the correctness of the content
|
|
|
|
- name: 'Download artifact #2'
|
|
|
|
- name: 'Download artifact #2'
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: 'artifact'
|
|
|
|
name: 'artifact'
|
|
|
|
path: some/other/path
|
|
|
|
path: some/other/path
|
|
|
@ -130,7 +129,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
# Download Artifact #3 and verify the correctness of the content
|
|
|
|
# Download Artifact #3 and verify the correctness of the content
|
|
|
|
- name: 'Download artifact #3'
|
|
|
|
- name: 'Download artifact #3'
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: 'GZip-Artifact'
|
|
|
|
name: 'GZip-Artifact'
|
|
|
|
path: gzip/artifact/path
|
|
|
|
path: gzip/artifact/path
|
|
|
@ -150,7 +149,7 @@ jobs:
|
|
|
|
shell: pwsh
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
|
|
|
|
- name: 'Download artifact #4'
|
|
|
|
- name: 'Download artifact #4'
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: 'Multi-Path-Artifact'
|
|
|
|
name: 'Multi-Path-Artifact'
|
|
|
|
path: multi/artifact
|
|
|
|
path: multi/artifact
|
|
|
|