Skip to content

Commit 1492b4f

Browse files
committed
style: format GitHub workflows
1 parent 67a3994 commit 1492b4f

File tree

11 files changed

+70
-4
lines changed

11 files changed

+70
-4
lines changed

.github/workflows/benchmark-post.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Post benchmarks
23
on:
34
workflow_run:
@@ -11,6 +12,7 @@ jobs:
1112
steps:
1213
# This posts the status to the PR/commit
1314
- uses: haya14busa/action-workflow_run-status@v1
15+
1416
- name: Download deltas
1517
uses: dawidd6/action-download-artifact@v6
1618
with:
@@ -20,15 +22,18 @@ jobs:
2022
name: delta-action-deltas
2123
if_no_artifact_found: ignore
2224
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
2326
- name: Check File Existence
2427
id: check-file-existence
2528
uses: thebinaryfelix/[email protected]
2629
with:
2730
files: '.delta.*'
31+
2832
- name: Get PR number
2933
if: github.event.workflow_run.event == 'pull_request' && steps.check-file-existence.outputs.exists == 'true'
3034
id: pr_number
3135
run: echo "pr_number=$(cat pr_number)" >> $GITHUB_OUTPUT
36+
3237
- name: Post deltas to GitHub
3338
if: steps.check-file-existence.outputs.exists == 'true'
3439
uses: netlify/delta-action@v4

.github/workflows/benchmark.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Calculate benchmarks
23

34
on:
@@ -12,26 +13,33 @@ jobs:
1213
steps:
1314
- name: Git checkout
1415
uses: actions/checkout@v4
16+
1517
- name: Use Node.js
1618
uses: actions/setup-node@v4
1719
with:
1820
node-version: lts/*
1921
cache: npm
22+
2023
- name: Install dependencies
2124
run: npm ci --no-audit && npm prune --production
25+
2226
- name: Get size
2327
run: du -sk node_modules | cut -f1 > .delta.packageSize && echo "kb (Package size)" >> .delta.packageSize
28+
2429
- name: Get dependency count
2530
run:
2631
npm ls -a -p | wc -l | tr -d ' \n' > .delta.dependencyCount && echo " (Dependency count)" >>
2732
.delta.dependencyCount
33+
2834
- name: Get TypeScript conversion progress
2935
run:
3036
grep -r --exclude-dir="node_modules" --include="*.ts" "@ts-expect-error" . | wc -l | xargs >
3137
.delta.tsConversion && echo " (Number of ts-expect-error directives)" >> .delta.tsConversion
38+
3239
- name: Save PR number
3340
if: github.event_name == 'pull_request'
3441
run: echo ${{ github.event.number }} > ./pr_number
42+
3543
- name: Upload deltas
3644
uses: actions/upload-artifact@v4
3745
with:

.github/workflows/codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: 'CodeQL'
1+
---
2+
name: CodeQL
23

34
on:
45
push:

.github/workflows/e2e-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: E2E Tests
23

34
on:
@@ -22,26 +23,30 @@ jobs:
2223
# Pinning 20.x version as a temporary workaround due to this https://github.com/nodejs/node/issues/52884
2324
node-version: ['18.14.0', '20.12.2', '22']
2425
fail-fast: false
25-
2626
steps:
2727
- name: Git checkout
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31+
3132
- name: Setup node
3233
uses: actions/setup-node@v4
3334
with:
3435
node-version: ${{ matrix.node-version }}
3536
cache: npm
3637
check-latest: true
38+
3739
- name: Cache verdaccio storage
3840
uses: actions/cache@v4
3941
with:
4042
path: ./.verdaccio-storage
4143
key: verdaccio-e2e-cli-${{ hashFiles('./package-lock.json') }}
44+
4245
- name: Install dependencies
4346
run: npm ci --no-audit
47+
4448
- run: npm run e2e
49+
4550
- name: Notify Slack
4651
uses: 8398a7/action-slack@v3
4752
if: ${{ github.event_name == 'schedule' && failure() }}
@@ -70,26 +75,30 @@ jobs:
7075
os: [ubuntu-latest, macOS-latest]
7176
node-version: ['18.14.0', '*']
7277
fail-fast: false
73-
7478
steps:
7579
- name: Git checkout
7680
uses: actions/checkout@v4
7781
with:
7882
fetch-depth: 0
83+
7984
- name: Setup node
8085
uses: actions/setup-node@v4
8186
with:
8287
node-version: ${{ matrix.node-version }}
8388
cache: npm
8489
check-latest: true
90+
8591
- name: Cache verdaccio storage
8692
uses: actions/cache@v4
8793
with:
8894
path: ./.verdaccio-storage
8995
key: verdaccio-e2e-cli-${{ hashFiles('./package-lock.json') }}
96+
9097
- name: Install dependencies
9198
run: npm ci --no-audit
99+
92100
- run: npm run e2e
101+
93102
- name: Notify Slack
94103
uses: 8398a7/action-slack@v3
95104
if: ${{ github.event_name == 'schedule' && failure() }}

.github/workflows/fossa.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Dependency License Scanning
23

34
on:
@@ -16,6 +17,7 @@ jobs:
1617
steps:
1718
- name: Checkout
1819
uses: actions/checkout@v4
20+
1921
- name: Download fossa cli
2022
run: |-
2123
mkdir -p $HOME/.local/bin
@@ -24,12 +26,15 @@ jobs:
2426
2527
- name: Fossa init
2628
run: fossa init
29+
2730
- name: Set env
2831
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
32+
2933
- name: Configuration
3034
run: |-
3135
sed -i "${line_number}s|.*| project: [email protected]:${GITHUB_REPOSITORY}.git|" .fossa.yml
3236
cat .fossa.yml
37+
3338
- name: Upload dependencies
3439
run: fossa analyze --debug
3540
env:

.github/workflows/integration-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Integration Tests
23

34
on:
@@ -35,44 +36,53 @@ jobs:
3536
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
3637
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
3738
if: "${{ startsWith(github.head_ref, 'release-') }}"
39+
3840
# This improves Windows network performance, we need this since we open many ports in our tests
3941
- name: Increase Windows port limit and reduce time wait delay
4042
run: |
4143
netsh int ipv4 set dynamicport tcp start=1025 num=64511
4244
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters /v TcpTimedWaitDelay /t REG_DWORD /d 30 /f
4345
if: "${{ matrix.os == 'windows-latest' && !steps.release-check.outputs.IS_RELEASE }}"
46+
4447
- name: Git checkout
4548
uses: actions/checkout@v4
4649
with:
4750
fetch-depth: 0
4851
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
52+
4953
- name: Use Node.js ${{ matrix.node-version }}
5054
uses: actions/setup-node@v4
5155
with:
5256
node-version: ${{ matrix.node-version }}
5357
cache: npm
5458
check-latest: true
5559
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
60+
5661
- name: Install PNPM
5762
run: |
5863
corepack enable
5964
corepack prepare [email protected] --activate
6065
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
66+
6167
- name: Setup Deno
6268
uses: denoland/setup-deno@v1
6369
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
6470
with:
6571
deno-version: v1.44.4
72+
6673
- name: Install core dependencies
6774
run: npm ci --no-audit
6875
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
76+
6977
- name: Generate self-signed certificates
7078
run: npm run certs
7179
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
7280
shell: bash
81+
7382
- name: Prepare tests
7483
run: npm run test:init
7584
if: '${{ !steps.release-check.outputs.IS_RELEASE }}'
85+
7686
- name: Tests
7787
uses: nick-fields/retry@v3
7888
if: '${{ !steps.release-check.outputs.IS_RELEASE }}'
@@ -92,6 +102,7 @@ jobs:
92102
# Changes the polling interval used by the file watcher
93103
CHOKIDAR_INTERVAL: 20
94104
CHOKIDAR_USEPOLLING: 1
105+
95106
- name: Get test coverage flags
96107
id: test-coverage-flags
97108
# For windows we have to use $env:
@@ -138,43 +149,52 @@ jobs:
138149
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
139150
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
140151
if: "${{ startsWith(github.head_ref, 'release-') }}"
152+
141153
# This improves Windows network performance, we need this since we open many ports in our tests
142154
- name: Increase Windows port limit and reduce time wait delay
143155
run: |
144156
netsh int ipv4 set dynamicport tcp start=1025 num=64511
145157
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters /v TcpTimedWaitDelay /t REG_DWORD /d 30 /f
158+
146159
- name: Git checkout
147160
uses: actions/checkout@v4
148161
with:
149162
fetch-depth: 0
150163
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
164+
151165
- name: Use Node.js
152166
uses: actions/setup-node@v4
153167
with:
154168
node-version: '23.x'
155169
cache: npm
156170
check-latest: true
157171
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
172+
158173
- name: Install PNPM
159174
run: |
160175
corepack enable
161176
corepack prepare [email protected] --activate
162177
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
178+
163179
- name: Setup Deno
164180
uses: denoland/setup-deno@v1
165181
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
166182
with:
167183
deno-version: v1.44.4
184+
168185
- name: Install core dependencies
169186
run: npm ci --no-audit
170187
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
188+
171189
- name: Generate self-signed certificates
172190
run: npm run certs
173191
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
174192
shell: bash
193+
175194
- name: Prepare tests
176195
run: npm run test:init
177196
if: '${{ !steps.release-check.outputs.IS_RELEASE }}'
197+
178198
- name: Tests
179199
uses: nick-fields/retry@v3
180200
if: '${{ !steps.release-check.outputs.IS_RELEASE }}'
@@ -194,6 +214,7 @@ jobs:
194214
# Changes the polling interval used by the file watcher
195215
CHOKIDAR_INTERVAL: 20
196216
CHOKIDAR_USEPOLLING: 1
217+
197218
- name: Get test coverage flags
198219
id: test-coverage-flags
199220
# For windows we have to use $env:

.github/workflows/pre-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: prerelease
23
on:
34
push:
@@ -12,13 +13,16 @@ jobs:
1213
contents: write
1314
steps:
1415
- uses: actions/checkout@v4
16+
1517
- uses: actions/setup-node@v4
1618
with:
1719
node-version: lts/*
1820
cache: npm
1921
registry-url: 'https://registry.npmjs.org'
22+
2023
- name: Install core dependencies
2124
run: npm ci --no-audit
25+
2226
- name: Extract tag and version
2327
id: extract
2428
run: |-
@@ -33,14 +37,19 @@ jobs:
3337
run: |-
3438
echo tag=${{ steps.extract.outputs.tag }}
3539
echo version=${{ steps.extract.outputs.version }}
40+
3641
- name: Setup git user
3742
run: git config --global user.name github-actions
43+
3844
- name: Setup git email
3945
run: git config --global user.email [email protected]
46+
4047
- name: Run npm version
4148
run: npm version ${{ steps.extract.outputs.version }}-${{ steps.extract.outputs.tag }} --allow-same-version
49+
4250
- name: Push changes
4351
run: git push --follow-tags
52+
4453
- name: Run npm publish
4554
run: npm publish --tag=${{ steps.extract.outputs.tag }} --provenance
4655
env:

.github/workflows/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: release-please
23
on:
34
push:

.github/workflows/unit-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Unit Tests
23

34
on:
@@ -27,19 +28,23 @@ jobs:
2728
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
2829
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
2930
if: "${{ startsWith(github.head_ref, 'release-') }}"
31+
3032
- name: Git checkout
3133
uses: actions/checkout@v4
3234
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
35+
3336
- name: Use Node.js ${{ matrix.node-version }}
3437
uses: actions/setup-node@v4
3538
with:
3639
node-version: ${{ matrix.node-version }}
3740
cache: npm
3841
check-latest: true
3942
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
43+
4044
- name: Install core dependencies
4145
run: npm ci --no-audit
4246
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
47+
4348
- name: Run unit tests
4449
uses: nick-fields/retry@v3
4550
with:

.github/workflows/vale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Lint Docs
23

34
on:

0 commit comments

Comments
 (0)