Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Code Format
name: Check code format

permissions: read-all

Expand All @@ -13,17 +13,19 @@ jobs:
runs-on: ubuntu-latest # You can also use 'macos-latest' or 'windows-latest'

steps:
- name: Checkout code
uses: actions/checkout@v4 # Use the latest stable version
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 2

- name: Set up Node.js
uses: actions/setup-node@v4 # Use the latest stable version
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: '22' # Specify the Node.js version your project uses (e.g., '18', '20', '22')
cache: 'npm' # Caches npm dependencies to speed up builds
cache: npm
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci # Use 'npm ci' for clean installs in CI environments, or 'npm install' if you prefer
run: npm ci

- name: Run format check
run: npm run check-format
18 changes: 11 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,27 @@ on:
pull_request:

jobs:
tests:
run-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 2

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: '22'
cache: 'npm'
cache: npm
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

# Ensure the project compiles properly.
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

- name: Build the project
run: npm run build

Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22