mirror of
https://github.com/actions/upload-artifact.git
synced 2025-06-16 08:37:13 +02:00
Compare commits
4 Commits
v2.2.4
...
upgrade-de
Author | SHA1 | Date | |
---|---|---|---|
551bc9bdf8 | |||
11e311c8b5 | |||
317b58f0d1 | |||
8d06e6c094 |
48
.github/workflows/check-dist.yml
vendored
Normal file
48
.github/workflows/check-dist.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# `dist/index.js` is a special file in Actions.
|
||||||
|
# When you reference an action with `uses:` in a workflow,
|
||||||
|
# `index.js` is the code that will run.
|
||||||
|
# For our project, we generate this file through a build process
|
||||||
|
# from other source files.
|
||||||
|
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
|
||||||
|
name: Check dist/
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-dist:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set Node.js 12.x
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Move the committed index.js file
|
||||||
|
run: mv dist/index.js /tmp
|
||||||
|
|
||||||
|
- name: Rebuild the index.js file
|
||||||
|
run: npm run release
|
||||||
|
|
||||||
|
- name: Compare the expected and actual index.js files
|
||||||
|
run: git diff --ignore-all-space dist/index.js /tmp/index.js
|
||||||
|
id: diff
|
||||||
|
|
||||||
|
# If index.js was different than expected, upload the expected version as an artifact
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
|
||||||
|
with:
|
||||||
|
name: index.js
|
||||||
|
path: dist/index.js
|
8
.github/workflows/licensed.yml
vendored
8
.github/workflows/licensed.yml
vendored
@ -1,8 +1,12 @@
|
|||||||
name: Licensed
|
name: Licensed
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: {branches: main}
|
push:
|
||||||
pull_request: {branches: main}
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -30,8 +30,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- name: npm install
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
8188
package-lock.json
generated
8188
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -44,10 +44,10 @@
|
|||||||
"eslint-plugin-github": "^4.1.1",
|
"eslint-plugin-github": "^4.1.1",
|
||||||
"eslint-plugin-jest": "^23.8.2",
|
"eslint-plugin-jest": "^23.8.2",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.2.5",
|
||||||
"jest-circus": "^26.1.0",
|
"jest-circus": "^27.2.5",
|
||||||
"prettier": "^2.0.4",
|
"prettier": "^2.0.4",
|
||||||
"ts-jest": "^25.3.1",
|
"ts-jest": "^27.0.6",
|
||||||
"typescript": "^3.8.3"
|
"typescript": "^3.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user