Compare commits
143
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
634f93cb29 | ||
|
|
b19ff43027 | ||
|
|
e262cbee4a | ||
|
|
bff23f9308 | ||
|
|
fff8c148a8 | ||
|
|
448e3f862a | ||
|
|
47225c44b3 | ||
|
|
d3f86a106a | ||
|
|
fc02353415 | ||
|
|
77454371a4 | ||
|
|
84fc7a0a35 | ||
|
|
67f2bc382f | ||
|
|
8ea3c2c174 | ||
|
|
d219c630f6 | ||
|
|
54124fbd88 | ||
|
|
b83057b90d | ||
|
|
171183c7dc | ||
|
|
e463631f66 | ||
|
|
ec378bcca1 | ||
|
|
42aef06f22 | ||
|
|
ac35f995fe | ||
|
|
95815c38cf | ||
|
|
278fca438a | ||
|
|
68909842a1 | ||
|
|
f9415c0ec3 | ||
|
|
76a6eb5cbc | ||
|
|
a2426d7c45 | ||
|
|
3ffa694f6f | ||
|
|
53f6aa5f93 | ||
|
|
b456700053 | ||
|
|
9eab798a98 | ||
|
|
a39a661f39 | ||
|
|
9a869e9c49 | ||
|
|
96a6f165f4 | ||
|
|
df4ad15cb8 | ||
|
|
c7cfc3a2a3 | ||
|
|
2439186eed | ||
|
|
b14cf4c926 | ||
|
|
c5804ef743 | ||
|
|
956811a503 | ||
|
|
af3c6d3e5b | ||
|
|
4dd97f8f21 | ||
|
|
da9985dde6 | ||
|
|
81ba80daa4 | ||
|
|
727afbf2b0 | ||
|
|
56c2d7ea8c | ||
|
|
7797bfcd59 | ||
|
|
9ff67cb2d2 | ||
|
|
049eba1e9a | ||
|
|
503e7a18ae | ||
|
|
a8a786b097 | ||
|
|
24aef17bbf | ||
|
|
b81a615862 | ||
|
|
cc20338598 | ||
|
|
1fc0fee191 | ||
|
|
7fba95161a | ||
|
|
f9ceb7763b | ||
|
|
533298bc57 | ||
|
|
d06289e120 | ||
|
|
d0ce8fd116 | ||
|
|
1ce0d91ace | ||
|
|
fa0a91b85d | ||
|
|
b54d0883e1 | ||
|
|
65a9edc588 | ||
|
|
fdd1595981 | ||
|
|
c13dba102f | ||
|
|
0daa75ebea | ||
|
|
9c19ed7fe5 | ||
|
|
3d3ea8741e | ||
|
|
89af5db821 | ||
|
|
b4aefff88e | ||
|
|
8caf195ad4 | ||
|
|
d7a2ec411d | ||
|
|
e56a1d48ef | ||
|
|
1fcda58b3a | ||
|
|
325a10d8b7 | ||
|
|
f8aaee4a21 | ||
|
|
d98334b11d | ||
|
|
c850b930e6 | ||
|
|
6fd111f15a | ||
|
|
87c55149d9 | ||
|
|
47f9ce604f | ||
|
|
127824d34c | ||
|
|
6dd49bff0a | ||
|
|
f71c0e3da3 | ||
|
|
7c63dfde29 | ||
|
|
67d37cd346 | ||
|
|
348754975e | ||
|
|
eaceaf801f | ||
|
|
81eafdc926 | ||
|
|
9ac5cad9e2 | ||
|
|
3ad8411bbd | ||
|
|
1de464352c | ||
|
|
bb3fa7fd35 | ||
|
|
a244de5a62 | ||
|
|
355659bff2 | ||
|
|
6b208ae046 | ||
|
|
6c5b5806e1 | ||
|
|
5f5015dc38 | ||
|
|
1fddaaf0f1 | ||
|
|
8aa9e2115b | ||
|
|
657edd9b81 | ||
|
|
555a2fc129 | ||
|
|
4fc4d70d4c | ||
|
|
072ac9dceb | ||
|
|
038dc0329f | ||
|
|
3f40cd641f | ||
|
|
82c243c150 | ||
|
|
f44cd7b40b | ||
|
|
3181fe853d | ||
|
|
aaaac7b403 | ||
|
|
7c9182f0e1 | ||
|
|
b94e701556 | ||
|
|
0b55470e40 | ||
|
|
0b51c2ef90 | ||
|
|
c4c6db724f | ||
|
|
1bd0606e08 | ||
|
|
eff4d42b1f | ||
|
|
4e2cbd8192 | ||
|
|
bf8f7d968a | ||
|
|
7a1cd3216c | ||
|
|
8f32874a49 | ||
|
|
b5ff8444b1 | ||
|
|
f07a0f73f5 | ||
|
|
7226129829 | ||
|
|
ada9446619 | ||
|
|
7eafc8b729 | ||
|
|
3132d12662 | ||
|
|
5be1d38671 | ||
|
|
465b526e63 | ||
|
|
8b83831f82 | ||
|
|
0742efc19b | ||
|
|
5e4b342272 | ||
|
|
98c6f16055 | ||
|
|
9140050fd5 | ||
|
|
88dadfbcfc | ||
|
|
896d1bb258 | ||
|
|
57685c7c71 | ||
|
|
8c323b340c | ||
|
|
727cfbe442 | ||
|
|
24b1443a07 | ||
|
|
e9ef242655 | ||
|
|
adf9559c4f |
+2
-3
@@ -9,8 +9,7 @@
|
||||
"plugin:import/errors",
|
||||
"plugin:import/warnings",
|
||||
"plugin:import/typescript",
|
||||
"plugin:prettier/recommended",
|
||||
"prettier/@typescript-eslint"
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": ["@typescript-eslint"]
|
||||
}
|
||||
}
|
||||
@@ -10,11 +10,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -22,12 +18,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node 16
|
||||
uses: actions/setup-node@v3
|
||||
- name: Setup Node 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16.x
|
||||
node-version: 20.x
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
@@ -46,7 +42,7 @@ jobs:
|
||||
id: diff
|
||||
|
||||
# If index.js was different than expected, upload the expected version as an artifact
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
||||
with:
|
||||
name: dist
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check licenses
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- run: npm ci
|
||||
- name: Install licensed
|
||||
run: |
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
name: 'Publish Immutable Action Version'
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish
|
||||
id: publish
|
||||
uses: actions/publish-immutable-action@0.0.3
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update the ${{ env.TAG_NAME }} tag
|
||||
uses: actions/publish-action@v0.2.1
|
||||
uses: actions/publish-action@v0.3.0
|
||||
with:
|
||||
source-tag: ${{ env.TAG_NAME }}
|
||||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
||||
+38
-19
@@ -8,7 +8,6 @@ on:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
|
||||
@@ -21,13 +20,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# using node 16 since that is what the latest version of the runner ships with
|
||||
- name: Setup Node 16
|
||||
uses: actions/setup-node@v3
|
||||
- name: Setup Node 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16.x
|
||||
node-version: 20.x
|
||||
cache: 'npm'
|
||||
|
||||
- name: npm install
|
||||
@@ -40,41 +38,42 @@ jobs:
|
||||
run: npm run lint
|
||||
|
||||
- name: Format
|
||||
run: npm run format-check
|
||||
run: npm run format-check
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: npm test
|
||||
|
||||
# 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
|
||||
run: |
|
||||
mkdir -p path/to/artifact-A
|
||||
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
|
||||
|
||||
|
||||
- name: Upload artifact A
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: 'Artifact-A'
|
||||
name: Artifact-A-${{ matrix.runs-on }}
|
||||
path: path/to/artifact-A
|
||||
|
||||
- name: Upload artifact B
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: 'Artifact-B'
|
||||
name: Artifact-B-${{ matrix.runs-on }}
|
||||
path: path/to/artifact-B
|
||||
|
||||
# Test downloading a single artifact
|
||||
- name: Download artifact A
|
||||
uses: ./
|
||||
with:
|
||||
name: 'Artifact-A'
|
||||
name: Artifact-A-${{ matrix.runs-on }}
|
||||
path: some/new/path
|
||||
|
||||
# Test downloading an artifact using tilde expansion
|
||||
- name: Download artifact A
|
||||
uses: ./
|
||||
with:
|
||||
name: 'Artifact-A'
|
||||
name: Artifact-A-${{ matrix.runs-on }}
|
||||
path: ~/some/path/with/a/tilde
|
||||
|
||||
- name: Verify successful download
|
||||
@@ -99,8 +98,8 @@ jobs:
|
||||
|
||||
- name: Verify successful download
|
||||
run: |
|
||||
$fileA = "some/other/path/Artifact-A/file-A.txt"
|
||||
$fileB = "some/other/path/Artifact-B/file-B.txt"
|
||||
$fileA = "some/other/path/Artifact-A-${{ matrix.runs-on }}/file-A.txt"
|
||||
$fileB = "some/other/path/Artifact-B-${{ matrix.runs-on }}/file-B.txt"
|
||||
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
|
||||
{
|
||||
Write-Error "Expected files do not exist"
|
||||
@@ -111,4 +110,24 @@ jobs:
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
|
||||
# Test glob downloading both artifacts to same directory
|
||||
- name: Download all Artifacts
|
||||
uses: ./
|
||||
with:
|
||||
pattern: Artifact-*
|
||||
path: single/directory
|
||||
merge-multiple: true
|
||||
|
||||
- name: Verify successful download
|
||||
run: |
|
||||
$fileA = "single/directory/file-A.txt"
|
||||
$fileB = "single/directory/file-B.txt"
|
||||
if(!(Test-Path -path $fileA) -or !(Test-Path -path $fileB))
|
||||
{
|
||||
Write-Error "Expected files do not exist"
|
||||
}
|
||||
if(!((Get-Content $fileA) -ceq "Lorem ipsum dolor sit amet") -or !((Get-Content $fileB) -ceq "Hello world from file B"))
|
||||
{
|
||||
Write-Error "File contents of downloaded artifacts are incorrect"
|
||||
}
|
||||
shell: pwsh
|
||||
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Generated
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user