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
34 changes: 16 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,53 @@
name: Build

on:
# Run the build for pushes and pull requests targeting master and devel
push:
branches:
- master
- devel
- v2
branches: [master, devel, v2]
pull_request:
branches:
- master
- devel
- v2
branches: [master, devel, v2]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['v22.11.0']
node-version: ['v24.11.1']

steps:
- name: Checkout
uses: actions/checkout@v4
# Setup Node
uses: actions/checkout@v5

- name: Setup (Node.js ${{ matrix.node-version }})
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: npm ci
run: npm clean-install --no-audit --no-fund

- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['node_modules/@playwright/test'].version)")" >> $GITHUB_ENV

- name: Cache Playwright
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
# Checks

- name: Lint
run: npm run lint
# Test

- name: Test
run: npm test
# Build

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged && npm test
npx lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git-tag-version = false
engine-strict = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v24.11.1
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Dist folder
dist/

# Generated code
src/lib/jm-api/**

# Other common ignores
node_modules/
.DS_Store
4 changes: 4 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
core: {
disableTelemetry: true,
enableCrashReports: false,
},
}
export default config
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import globals from 'globals'
import tseslint from 'typescript-eslint'

export default defineConfig(
{ ignores: ['dist', './.storybook/**', 'src/lib/jm-api/**'] },
{ ignores: ['dist', './.storybook/**'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
Expand Down
Loading
Loading