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
24 changes: 12 additions & 12 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install package
run: yarn install --frozen-lockfile
- name: Run the linter
run: yarn lint
- name: Install Dependencies
run: npm ci
- name: Run Linter
run: npm run lint

unit-tests:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,18 +26,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install package
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test --ci --reporters=default --reporters=jest-junit
- name: Install Dependencies
run: npm ci
- name: Run Tests and Add Annotations
run: npm test -- --ci --reporters=default --reporters=github-actions --reporters=jest-junit
env:
CONDUCTOR_SERVER_URL: ${{ vars.SERVER_URL }}
CONDUCTOR_AUTH_KEY: ${{ secrets.AUTH_KEY }}
CONDUCTOR_AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
- name: Publish Test Results
if: always()
- name: Publish Dorny Test Results Summary
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }}
with:
name: Test report
path: reports/jest-*.xml
path: reports/jest-junit.xml
reporter: jest-junit
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
env:
RELEASE_VERSION: ${{ github.ref_name }}
- name: Install dependencies required to build package
run: yarn install --frozen-lockfile
run: npm ci
- name: Build package
run: yarn build
run: npm run build
- name: Publish package
run: npm publish --access public
env:
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import { defineConfig } from "eslint/config";

export default tseslint.config(
export default defineConfig(
eslint.configs.recommended,
tseslint.configs.recommended, // to remove
//tseslint.configs.strict, // to add
Expand Down
18 changes: 5 additions & 13 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import 'dotenv/config';

/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
import "dotenv/config";

export default {
preset: 'ts-jest',
preset: "ts-jest",
clearMocks: true,
coverageProvider: "v8",
testMatch: [
"**/__tests__/**/*.test.[jt]s?(x)",
"**/?(*.)+(spec|test).[tj]s?(x)"
"**/?(*.)+(spec|test).[tj]s?(x)",
],
transformIgnorePatterns: [
"/node_modules/",
"\\.pnp\\.[^\\/]+$"
]
};
transformIgnorePatterns: ["/node_modules/", "\\.pnp\\.[^\\/]+$"],
};
Loading