diff --git a/.github/workflows/test-Windows.yml b/.github/workflows/test-Windows.yml new file mode 100644 index 0000000..a5d0b73 --- /dev/null +++ b/.github/workflows/test-Windows.yml @@ -0,0 +1,47 @@ +name: Test (Windows) + +concurrency: + group: windows-test-${{ github.head_ref }} + cancel-in-progress: true + +on: + pull_request: + branches: [main] + + merge_group: + + workflow_dispatch: + +jobs: + test-windows: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [22.x] + os: [windows-latest] + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install Pnpm + run: | + npm install -g corepack@latest --force + corepack enable + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm install + + - name: Build Packages + run: pnpm run build + + - name: Unit Test + run: pnpm run test diff --git a/.github/workflows/test-macOS.yml b/.github/workflows/test-macOS.yml new file mode 100644 index 0000000..17f802e --- /dev/null +++ b/.github/workflows/test-macOS.yml @@ -0,0 +1,47 @@ +name: Test (macOS) + +concurrency: + group: macos-test-${{ github.head_ref }} + cancel-in-progress: true + +on: + pull_request: + branches: [main] + + merge_group: + + workflow_dispatch: + +jobs: + test-macos: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [22.x] + os: [macos-14] # M1 Mac + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install Pnpm + run: | + npm install -g corepack@latest --force + corepack enable + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm install + + - name: Build Packages + run: pnpm run build + + - name: Unit Test + run: pnpm run test diff --git a/package.json b/package.json index 3fa770a..3cbbfc2 100644 --- a/package.json +++ b/package.json @@ -49,5 +49,6 @@ "typescript": "^5.4.4", "util-ts-types": "^1.0.0", "vitest": "1.4.0" - } -} \ No newline at end of file + }, + "packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2" +}