diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b28813..c83b216 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,22 @@ jobs: check-latest: true - run: pnpm i - run: pnpm run prettier - build-test: + build-test-arm64: + needs: [eslint, prettier, tsc] + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: latest + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 22 + check-latest: true + - run: pnpm i + - run: pnpm run test-arm64 + build-test-x64: needs: [eslint, prettier, tsc] runs-on: ubuntu-latest steps: @@ -65,4 +80,4 @@ jobs: node-version: 22 check-latest: true - run: pnpm i - - run: pnpm run test + - run: pnpm run test-x64 diff --git a/package.json b/package.json index 54063eb..fc624ae 100644 --- a/package.json +++ b/package.json @@ -118,6 +118,7 @@ "prettier": "npx prettier . --check", "prettier-fix": "npx prettier . --write", "pretest": "pnpm run tsc", - "test": "pnpm run pretest && cd lib && node modules/build windows-x64 && node modules/build linuxstatic-x64 && node modules/build macos-x64" + "test-x64": "pnpm run pretest && cd lib && node modules/build windows-x64 && node modules/build linuxstatic-x64 && node modules/build macos-x64", + "test-arm64": "pnpm run pretest && cd lib && node modules/build windows-arm64 && node modules/build linux-arm64 && node modules/build macos-arm64" } }