diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index f00390b..74f0c3d 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -43,34 +43,27 @@ jobs: name: oxlint path: ./target/release/oxlint - test-ecosystem: + checkout: + namme: Checkout needs: build + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.setmatrix.outputs.matrix }} + steps: + - uses: taiki-e/checkout-action@v1 + - id: setmatrix + run: | + matrix=$(cat ./matrix.json) + echo "::set-output name=matrix::$matrix" + + test-ecosystem: + needs: checkout timeout-minutes: 30 runs-on: ubuntu-latest strategy: fail-fast: false matrix: - include: - - repository: rolldown/rolldown - ref: main - path: rolldown - command: ./oxlint --deny-warnings --ignore-path=.oxlintignore --import-plugin - - - repository: napi-rs/napi-rs - ref: main - path: napi-rs - command: ./oxlint --deny-warnings --ignore-path=.oxlintignore --import-plugin -D correctness -A no-export - - - repository: toeverything/affine - ref: canary - path: affine - command: ./oxlint --deny-warnings -c oxlint.json --import-plugin -D correctness -D perf - - - repository: preactjs/preact - ref: main - path: preact - command: ./oxlint --deny-warnings -c oxlint.json oxlint src test debug compat hooks test-utils - + include: ${{fromJson(needs.checkout.outputs.matrix)}} name: ${{ matrix.repository }} steps: - name: Clone ${{ matrix.repository }} diff --git a/matrix.json b/matrix.json new file mode 100644 index 0000000..4bfad4d --- /dev/null +++ b/matrix.json @@ -0,0 +1,26 @@ +[ + { + "repository": "rolldown/rolldown", + "ref": "main", + "path": "rolldown", + "command": "./oxlint --deny-warnings --ignore-path=.oxlintignore --import-plugin" + }, + { + "repository": "napi-rs/napi-rs", + "ref": "main", + "path": "napi-rs", + "command": "./oxlint --deny-warnings --ignore-path=.oxlintignore --import-plugin -D correctness -A no-export" + }, + { + "repository": "toeverything/affine", + "ref": "canary", + "path": "affine", + "command": "./oxlint --deny-warnings -c oxlint.json --import-plugin -D correctness -D perf" + }, + { + "repository": "preactjs/preact", + "ref": "main", + "path": "preact", + "command": "./oxlint --deny-warnings -c oxlint.json oxlint src test debug compat hooks test-utils" + } +]