diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml new file mode 100644 index 0000000..544fcd6 --- /dev/null +++ b/.github/workflows/ecosystem-ci.yml @@ -0,0 +1,76 @@ +name: oxlint ecosystem ci + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + pull_request: + types: [opened, synchronize] + push: + branches: + - main + +defaults: + run: + shell: bash + +jobs: + build: + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - name: Checkout oxc + uses: actions/checkout@v4 + with: + repository: oxc-project/oxc + ref: main + + - name: Install Rust + uses: moonrepo/setup-rust@v1 + with: + bins: just + cache-base: main + + - name: Build oxlint + run: just oxlint + + - name: Upload Binary + uses: actions/upload-artifact@v4 + with: + if-no-files-found: error + name: oxlint + path: ./target/release/oxlint + + test-ecosystem: + needs: build + timeout-minutes: 30 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + suite: + - repository: rolldown/rolldown + ref: main + path: rolldown + command: ./oxlint --ignore-path=.oxlintignore --import-plugin --deny-warnings + + steps: + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: oxlint + path: . + + - run: chmod +x ./oxlint + + - name: Clone ${{ matrix.suite }} + uses: actions/checkout@v4 + with: + repository: ${{ matrix.repository }} + ref: ${{ matrix.ref }} + path: ${{ matrix.path }} + + - name: Run + working-directory: ${{ matrix.path }} + run: ${{ matrix.path }}