Skip to content

Commit 783214a

Browse files
authored
Fix the build (#21)
1 parent e65f38e commit 783214a

File tree

6 files changed

+201
-50
lines changed

6 files changed

+201
-50
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
4141
run: |
4242
npm install
4343
44-
- name: Build code
44+
- name: Run tests
4545
run: |
4646
node --test --experimental-test-coverage --test-coverage-lines=${{ steps.build_config.outputs['requiredCoverage'] || 100 }}

.github/workflows/validate.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Validate build
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
lint:
15+
name: Validate build
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Harden the runner (Audit all outbound calls)
19+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
20+
with:
21+
egress-policy: audit
22+
23+
- name: Check out code
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
persist-credentials: false
28+
29+
- name: Use Node.js 24.x
30+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
31+
with:
32+
node-version: 24.x
33+
34+
- name: Install dependencies
35+
run: |
36+
npm install
37+
38+
- name: Validate build output
39+
env:
40+
GH_INSTALLATION_TOKEN: ${{ github.token }}
41+
INLINE_CONFIG: |
42+
PaddleHQ/repo-file-sync-action:
43+
- README.md
44+
run: |
45+
node ./src/index.js
46+
47+
48+
- name: Validate build output
49+
env:
50+
GH_INSTALLATION_TOKEN: ${{ github.token }}
51+
INLINE_CONFIG: |
52+
PaddleHQ/repo-file-sync-action:
53+
- README.md
54+
run: |
55+
node ./dist/index.js

dist/index.js

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/licenses.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,29 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
653653
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
654654

655655

656+
es6-promise
657+
MIT
658+
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors
659+
660+
Permission is hereby granted, free of charge, to any person obtaining a copy of
661+
this software and associated documentation files (the "Software"), to deal in
662+
the Software without restriction, including without limitation the rights to
663+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
664+
of the Software, and to permit persons to whom the Software is furnished to do
665+
so, subject to the following conditions:
666+
667+
The above copyright notice and this permission notice shall be included in all
668+
copies or substantial portions of the Software.
669+
670+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
671+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
672+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
673+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
674+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
675+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
676+
SOFTWARE.
677+
678+
656679
fs-extra
657680
MIT
658681
(The MIT License)

0 commit comments

Comments
 (0)