diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 3628bb8..8704418 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -1,9 +1,9 @@ -name: autofix.ci # needed to securely identify the workflow +name: autofix.ci # needed to securely identify the workflow on: pull_request: push: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -16,11 +16,11 @@ jobs: - run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: "pnpm" - run: pnpm install - name: Fix lint issues run: npm run lint:fix - uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84 with: - commit-message: 'chore: apply automated lint fixes' + commit-message: "chore: apply automated lint fixes" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35e740d..8ee3a5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,16 +10,21 @@ on: jobs: ci: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: "pnpm" - run: pnpm install - run: pnpm lint + if: matrix.os == 'ubuntu-latest' - run: pnpm build + if: matrix.os == 'ubuntu-latest' - run: pnpm vitest --coverage - uses: codecov/codecov-action@v4