Skip to content

Commit 92c881e

Browse files
Include .github YAMLs in formatter + format
1 parent 41e6a55 commit 92c881e

File tree

10 files changed

+94
-96
lines changed

10 files changed

+94
-96
lines changed

.github/actions/colima-setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: 'Colima Setup'
2-
description: 'Sets up Colima'
1+
name: "Colima Setup"
2+
description: "Sets up Colima"
33
inputs:
44
runner:
5-
description: 'The runner type (e.g., macos-latest)'
5+
description: "The runner type (e.g., macos-latest)"
66
required: true
77
runs:
88
using: "composite"

.github/actions/docker-rootless-setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'Docker Rootless Setup'
2-
description: 'Sets up Docker in rootless mode'
1+
name: "Docker Rootless Setup"
2+
description: "Sets up Docker in rootless mode"
33
runs:
44
using: "composite"
55
steps:
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
name: 'NPM Setup'
2-
description: 'Sets up Node.js and installs NPM dependencies with caching'
1+
name: "NPM Setup"
2+
description: "Sets up Node.js and installs NPM dependencies with caching"
33

44
inputs:
55
runner:
6-
description: 'Runner to use'
6+
description: "Runner to use"
77
required: true
88
node-version:
9-
description: 'Node.js version to use'
9+
description: "Node.js version to use"
1010
required: true
1111
workspace:
12-
description: 'Key for the cache'
12+
description: "Key for the cache"
1313
required: true
1414

1515
outputs:
1616
workspace_path:
1717
description: "Full path to the workspace directory"
1818
value: ${{ steps.set-env.outputs.workspace_path }}
19-
19+
2020
runs:
2121
using: "composite"
2222
steps:
23-
- name: Install NodeJS ${{ inputs.node-version }}
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: ${{ inputs.node-version }}
27-
28-
- name: Set cache configuration
29-
shell: bash
30-
id: set-env
31-
run: |
32-
if [ "${{ inputs.workspace }}" = "testcontainers" ]; then
33-
echo "CACHE_PATHS<<EOF" >> $GITHUB_ENV
34-
echo "node_modules" >> $GITHUB_ENV
35-
echo "packages/testcontainers/node_modules" >> $GITHUB_ENV
36-
echo "EOF" >> $GITHUB_ENV
37-
echo "WORKSPACE_PATH=packages/testcontainers" >> $GITHUB_ENV
38-
echo "workspace_path=packages/testcontainers" >> "$GITHUB_OUTPUT"
39-
else
40-
echo "CACHE_PATHS<<EOF" >> $GITHUB_ENV
41-
echo "node_modules" >> $GITHUB_ENV
42-
echo "packages/testcontainers/node_modules" >> $GITHUB_ENV
43-
echo "packages/modules/${{ inputs.workspace }}/node_modules" >> $GITHUB_ENV
44-
echo "EOF" >> $GITHUB_ENV
45-
echo "WORKSPACE_PATH=packages/modules/${{ inputs.workspace }}" >> $GITHUB_ENV
46-
echo "workspace_path=packages/modules/${{ inputs.workspace }}" >> "$GITHUB_OUTPUT"
47-
fi
48-
49-
- uses: actions/cache/restore@v4
50-
id: npm-cache
51-
with:
52-
path: ${{ env.CACHE_PATHS }}
53-
key: ${{ inputs.runner }}-node-${{ inputs.node-version }}-${{ inputs.workspace }}-${{ hashFiles('package-lock.json', 'packages/testcontainers/package-lock.json', format('packages/modules/{0}/package-lock.json', inputs.workspace)) }}
54-
restore-keys: |
55-
${{ inputs.runner }}-node-${{ inputs.node-version }}-${{ inputs.workspace }}-
56-
${{ inputs.runner }}-node-${{ inputs.node-version }}-
23+
- name: Install NodeJS ${{ inputs.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ inputs.node-version }}
27+
28+
- name: Set cache configuration
29+
shell: bash
30+
id: set-env
31+
run: |
32+
if [ "${{ inputs.workspace }}" = "testcontainers" ]; then
33+
echo "CACHE_PATHS<<EOF" >> $GITHUB_ENV
34+
echo "node_modules" >> $GITHUB_ENV
35+
echo "packages/testcontainers/node_modules" >> $GITHUB_ENV
36+
echo "EOF" >> $GITHUB_ENV
37+
echo "WORKSPACE_PATH=packages/testcontainers" >> $GITHUB_ENV
38+
echo "workspace_path=packages/testcontainers" >> "$GITHUB_OUTPUT"
39+
else
40+
echo "CACHE_PATHS<<EOF" >> $GITHUB_ENV
41+
echo "node_modules" >> $GITHUB_ENV
42+
echo "packages/testcontainers/node_modules" >> $GITHUB_ENV
43+
echo "packages/modules/${{ inputs.workspace }}/node_modules" >> $GITHUB_ENV
44+
echo "EOF" >> $GITHUB_ENV
45+
echo "WORKSPACE_PATH=packages/modules/${{ inputs.workspace }}" >> $GITHUB_ENV
46+
echo "workspace_path=packages/modules/${{ inputs.workspace }}" >> "$GITHUB_OUTPUT"
47+
fi
48+
49+
- uses: actions/cache/restore@v4
50+
id: npm-cache
51+
with:
52+
path: ${{ env.CACHE_PATHS }}
53+
key: ${{ inputs.runner }}-node-${{ inputs.node-version }}-${{ inputs.workspace }}-${{ hashFiles('package-lock.json', 'packages/testcontainers/package-lock.json', format('packages/modules/{0}/package-lock.json', inputs.workspace)) }}
54+
restore-keys: |
55+
${{ inputs.runner }}-node-${{ inputs.node-version }}-${{ inputs.workspace }}-
56+
${{ inputs.runner }}-node-${{ inputs.node-version }}-
5757
58-
- name: Install dependencies
59-
if: steps.npm-cache.outputs.cache-hit != 'true'
60-
shell: bash
61-
run: npm ci --workspace ${{ env.WORKSPACE_PATH }} --include-workspace-root
58+
- name: Install dependencies
59+
if: steps.npm-cache.outputs.cache-hit != 'true'
60+
shell: bash
61+
run: npm ci --workspace ${{ env.WORKSPACE_PATH }} --include-workspace-root
6262

63-
- name: Cache npm
64-
if: steps.npm-cache.outputs.cache-hit != 'true'
65-
uses: actions/cache/save@v4
66-
with:
67-
path: ${{ env.CACHE_PATHS }}
68-
key: ${{ steps.npm-cache.outputs.cache-primary-key }}
63+
- name: Cache npm
64+
if: steps.npm-cache.outputs.cache-hit != 'true'
65+
uses: actions/cache/save@v4
66+
with:
67+
path: ${{ env.CACHE_PATHS }}
68+
key: ${{ steps.npm-cache.outputs.cache-primary-key }}

.github/actions/podman-setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'Podman Setup'
2-
description: 'Sets up Podman'
1+
name: "Podman Setup"
2+
description: "Sets up Podman"
33
runs:
44
using: "composite"
55
steps:

.github/actions/rancher-desktop-setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: 'Rancher Desktop Setup'
2-
description: 'Sets up Rancher Desktop'
1+
name: "Rancher Desktop Setup"
2+
description: "Sets up Rancher Desktop"
33
inputs:
44
runner:
5-
description: 'The runner type (e.g., macos-latest)'
5+
description: "The runner type (e.g., macos-latest)"
66
required: true
77
runs:
88
using: "composite"

.github/release-drafter.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
name-template: 'v$RESOLVED_VERSION'
2-
tag-template: 'v$RESOLVED_VERSION'
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
33
categories:
4-
- title: '🚀 Features'
4+
- title: "🚀 Features"
55
labels:
6-
- 'enhancement'
7-
- title: '🐛 Bug Fixes'
6+
- "enhancement"
7+
- title: "🐛 Bug Fixes"
88
labels:
9-
- 'bug'
10-
- title: '📖 Documentation'
9+
- "bug"
10+
- title: "📖 Documentation"
1111
labels:
12-
- 'documentation'
13-
- title: '🧹 Maintenance'
12+
- "documentation"
13+
- title: "🧹 Maintenance"
1414
labels:
15-
- 'maintenance'
16-
- title: '📦 Dependency Updates'
15+
- "maintenance"
16+
- title: "📦 Dependency Updates"
1717
labels:
18-
- 'dependencies'
19-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
- "dependencies"
19+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
2020
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
2121
version-resolver:
2222
major:
2323
labels:
24-
- 'major'
24+
- "major"
2525
minor:
2626
labels:
27-
- 'minor'
27+
- "minor"
2828
patch:
2929
labels:
30-
- 'patch'
30+
- "patch"
3131
default: patch
3232
template: |
3333
## Changes
3434
35-
$CHANGES
35+
$CHANGES

.github/workflows/codeql-analysis.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ main ]
8+
branches: [main]
99
schedule:
10-
- cron: '17 5 * * 2'
10+
- cron: "17 5 * * 2"
1111

1212
jobs:
1313
analyze:
@@ -20,17 +20,16 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'javascript' ]
23+
language: ["javascript"]
2424

2525
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v4
28-
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v3
30-
with:
31-
languages: ${{ matrix.language }}
32-
- name: Autobuild
33-
uses: github/codeql-action/autobuild@v3
34-
- name: Perform CodeQL Analysis
35-
uses: github/codeql-action/analyze@v3
36-
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v3
30+
with:
31+
languages: ${{ matrix.language }}
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v3
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v3

.github/workflows/test-template.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,4 @@ jobs:
5050
workspace: "${{ inputs.workspace }}"
5151

5252
- name: Run tests
53-
run:
54-
npm run test:ci -- --coverage.include=${{ steps.npm-install.outputs.workspace_path }} ${{ steps.npm-install.outputs.workspace_path }}
53+
run: npm run test:ci -- --coverage.include=${{ steps.npm-install.outputs.workspace_path }} ${{ steps.npm-install.outputs.workspace_path }}

.github/workflows/windows-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ jobs:
7676
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
7777
context: 'Test Windows',
7878
});
79-
}
79+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"docs:serve": "docker-compose up",
1212
"test": "vitest run",
1313
"test:ci": "npm run test -- --coverage",
14-
"format": "prettier --write package.json \"packages/**/*.ts\"",
14+
"format": "prettier --write package.json \"packages/**/*.ts\" \".github/**/*.yml\"",
1515
"lint": "eslint --fix package.json \"packages/**/*.ts\"",
1616
"lint:ci": "eslint package.json \"${WORKSPACE_PATH}/**/*.ts\" --max-warnings=0",
1717
"update-deps": "npm-check-updates --workspaces --root -u",

0 commit comments

Comments
 (0)