diff --git a/.editorconfig b/.editorconfig index 980ef21..6b5b0ba 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,7 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true + +[*.{yaml,yml}] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0725db0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: Continuous Integration (CI) + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [22, 24] + name: Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: "npm" + cache-dependency-path: "package-lock.json" + - run: npm ci + - run: npm run test --workspaces --if-present diff --git a/.gitignore b/.gitignore index 3056c3c..bcc43e5 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ !/flake.lock ### Repository configuration ### +!/.github/workflows/*.yml !/.husky/commit-msg !/conventional.config.js diff --git a/packages/conventional/package.json b/packages/conventional/package.json index c6c1c27..69b7437 100644 --- a/packages/conventional/package.json +++ b/packages/conventional/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "tsc --build", - "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test", + "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot", "pretest": "npm run build", "prepack": "npm run build" }, diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 227a742..abf6989 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -21,7 +21,7 @@ ], "scripts": { "build": "tsc --build", - "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test", + "test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot", "pretest": "npm run build", "prepack": "npm run build" }