Skip to content

Commit

Permalink
chore: use a json file
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed May 17, 2024
1 parent 3be269c commit d1ff508
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
26 changes: 26 additions & 0 deletions matrix.json
Original file line number Diff line number Diff line change
@@ -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"
}
]

0 comments on commit d1ff508

Please sign in to comment.