Skip to content

Commit 7df2310

Browse files
authored
Merge pull request #556 from sir-gon/develop
Develop
2 parents 9f87175 + 96607ba commit 7df2310

File tree

11 files changed

+81
-43
lines changed

11 files changed

+81
-43
lines changed

.github/workflows/codeql.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,25 @@ on: # yamllint disable-line rule:truthy
3434

3535
jobs:
3636
analyze:
37-
name: Analyze
37+
name: Analyze (${{ matrix.language }})
38+
# Runner size impacts CodeQL analysis time. To learn more, please see:
39+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
40+
# - https://gh.io/supported-runners-and-hardware-resources
41+
# - https://gh.io/using-larger-runners (GitHub.com only)
42+
# Consider using larger runners or machines with greater resources
43+
# for possible analysis time improvements.
3844
runs-on:
39-
${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
45+
${{ (matrix.language == 'swift' && 'macos-14') || 'ubuntu-24.04' }}
4046
permissions:
47+
# required for all workflows
48+
security-events: write
49+
50+
# required to fetch internal or private CodeQL packs
51+
packages: read
52+
53+
# only required for workflows in private repositories
4154
actions: read
4255
contents: read
43-
security-events: write
4456

4557
strategy:
4658
fail-fast: false

.github/workflows/docker-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
build:
2020
name: "Build Docker images"
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-24.04
2222
steps:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2424

@@ -73,7 +73,7 @@ jobs:
7373

7474
lint:
7575
name: "Run in docker: LINT"
76-
runs-on: ubuntu-latest
76+
runs-on: ubuntu-24.04
7777
needs: build
7878
steps:
7979
- name: Download artifact
@@ -93,7 +93,7 @@ jobs:
9393
9494
test:
9595
name: "Run in docker: TEST"
96-
runs-on: ubuntu-latest
96+
runs-on: ubuntu-24.04
9797
needs: build
9898
steps:
9999
- name: Download artifact
@@ -113,7 +113,7 @@ jobs:
113113
114114
security:
115115
name: "Snyk Container"
116-
runs-on: ubuntu-latest
116+
runs-on: ubuntu-24.04
117117
needs: build
118118
permissions:
119119
actions: read
@@ -160,7 +160,7 @@ jobs:
160160
sarif_file: 'snyk.sarif'
161161
scan:
162162
name: "Trivy"
163-
runs-on: ubuntu-latest
163+
runs-on: ubuntu-24.04
164164
needs: build
165165
permissions:
166166
actions: read

.github/workflows/eslint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ on: # yamllint disable-line rule:truthy
3232
jobs:
3333
eslint:
3434
name: Run eslint scanning
35-
runs-on: ubuntu-latest
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
os: ["ubuntu-24.04", "macos-14", "windows-2022"]
39+
node-version: [18.x, 20.x, 22.x]
40+
# See supported Node.js release schedule
41+
# at https://nodejs.org/en/about/releases/
3642
permissions:
3743
contents: read
3844
security-events: write

.github/workflows/gitleaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on: # yamllint disable-line rule:truthy
2020
jobs:
2121
scan:
2222
name: gitleaks
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
steps:
2525
- uses: actions/checkout@v4
2626
with:

.github/workflows/markdown-lint.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: Markdown Lint
43

54
on: # yamllint disable-line rule:truthy
@@ -10,19 +9,27 @@ on: # yamllint disable-line rule:truthy
109
branches: ["main"]
1110
workflow_dispatch:
1211

12+
permissions: read-all
13+
1314
jobs:
14-
lint:
15+
markdownlint:
1516
name: Markdown Lint
16-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
18+
19+
strategy:
20+
matrix:
21+
node-version: [22.x]
22+
# See supported Node.js release schedule
23+
# at https://nodejs.org/en/about/releases/
1724

1825
steps:
1926
- name: Checkout repository
2027
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2128

22-
- name: Set up Node.js
29+
- name: Set up Node.js ${{ matrix.node-version }}
2330
uses: actions/setup-node@v4
2431
with:
25-
node-version: 22.x
32+
node-version: ${{ matrix.node-version }}
2633

2734
- name: Install dependencies
2835
run: npm install -g markdownlint-cli

.github/workflows/node-coverage.js.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ on: # yamllint disable-line rule:truthy
1111
workflow_dispatch:
1212

1313
jobs:
14-
build:
15-
runs-on: ubuntu-latest
14+
coverage:
15+
name: NodeJS CI Coverage
16+
runs-on: ubuntu-24.04
1617
steps:
1718
- name: Checkout repository
1819
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -27,9 +28,6 @@ jobs:
2728
- name: Install dependencies
2829
run: npm ci --verbose
2930

30-
- name: Lint
31-
run: npm run lint
32-
3331
- name: Run the tests
3432
run: npm run jest:ci -- --coverage
3533

.github/workflows/node.js.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: Node.js CI Tests
43

54
on: # yamllint disable-line rule:truthy
@@ -12,14 +11,11 @@ on: # yamllint disable-line rule:truthy
1211

1312
jobs:
1413
build:
15-
runs-on: ubuntu-latest
14+
name: NodeJS Jest CI Test
15+
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [
19-
"windows-latest",
20-
"ubuntu-latest",
21-
"macOS-latest"
22-
]
18+
os: ["ubuntu-24.04", "macos-14", "windows-2022"]
2319
node-version: [18.x, 20.x, 22.x]
2420
# See supported Node.js release schedule
2521
# at https://nodejs.org/en/about/releases/
@@ -36,8 +32,5 @@ jobs:
3632
- name: Install dependencies
3733
run: npm ci --verbose
3834

39-
- name: Lint
40-
run: npm run lint
41-
4235
- name: Run the tests
4336
run: npm run jest:ci

.github/workflows/snyk-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on: # yamllint disable-line rule:truthy
1313
jobs:
1414
security:
1515
name: Snyk Open Source (Node.js)
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
actions: read
1919
contents: read

.github/workflows/yamllint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: YAML lint
43

54
on: # yamllint disable-line rule:truthy
@@ -12,7 +11,8 @@ on: # yamllint disable-line rule:truthy
1211

1312
jobs:
1413
lint:
15-
runs-on: ubuntu-latest
14+
name: YAML lint
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

package-lock.json

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

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@types/eslint__js": "^8.42.3",
2121
"@types/jest": "^29.5.5",
2222
"@typescript-eslint/eslint-plugin": "^8.5.0",
23+
"cross-env": "^7.0.3",
2324
"eslint": "^8.57.1",
2425
"eslint-config-airbnb-base": "^15.0.0",
2526
"eslint-config-prettier": "^9.0.0",
@@ -36,13 +37,13 @@
3637
"scripts": {
3738
"build": "tsc -p tsconfig.prod.json",
3839
"start": "npm run test",
39-
"lint": "npx --yes eslint --env-info; npx --yes eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
40-
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
41-
"jest:clean": "npx --yes jest --clearCache && npx --yes watchman watch-del-all",
42-
"jest:bruteforce": "BRUTEFORCE=true node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
43-
"jest:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
44-
"style:format": "npx --yes prettier --write 'src/**/*.ts'",
45-
"style:check": "npx --yes prettier --check 'src/**/*.ts'",
40+
"lint": "npx eslint --env-info; npx eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
41+
"jest:ci": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
42+
"jest:clean": "npx jest --clearCache && npx watchman watch-del-all",
43+
"jest:bruteforce": "cross-env BRUTEFORCE=true NODE_OPTIONS=--experimental-vm-modules npx jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
44+
"jest:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
45+
"style:format": "npx prettier --write 'src/**/*.ts'",
46+
"style:check": "npx prettier --check 'src/**/*.ts'",
4647
"test": "jest",
4748
"update-all": "npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
4849
}

0 commit comments

Comments
 (0)