mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-04 16:45:52 +08:00
jsdoc: async functions should return Promise (#70)
* jsdoc: async functions should return Promise * update dist/index.js * improve ci * run anyway * update dist * test if esbuild produces deterministic builds * Update ci.yml * Update ci.yml * specify target to node16 * another try * Check for empty dataJson Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com> * build dist Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com> * build latest * modify test step * avoid skipping * go back to ncc * add back github.ref * remove additional stuff * build dist/index.js Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com> Co-authored-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@@ -9,6 +9,9 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: >
|
||||
github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.user.login == 'dependabot[bot]'
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
@@ -44,10 +47,35 @@ jobs:
|
||||
git commit -m "Update dist"
|
||||
git push origin HEAD:${{ steps.ref.outputs.branch }}
|
||||
fi
|
||||
test:
|
||||
integrity:
|
||||
if: >
|
||||
!failure() &&
|
||||
!cancelled()
|
||||
needs:
|
||||
- build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16.17.0'
|
||||
- name: Build action
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Repository Integrity Check
|
||||
run: |
|
||||
git diff --quiet dist
|
||||
test:
|
||||
if: >
|
||||
!failure() &&
|
||||
!cancelled()
|
||||
needs:
|
||||
- integrity
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user