-
-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (81 loc) · 2.32 KB
/
ecosystem-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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:
name: 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
cache-target: release
- 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:
- 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
name: ${{ matrix.repository }}
steps:
- name: Clone ${{ matrix.repository }}
uses: actions/checkout@v4
with:
repository: ${{ matrix.repository }}
ref: ${{ matrix.ref }}
path: ${{ matrix.path }}
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: oxlint
path: ${{ matrix.path }}
- name: chmod +x oxlint
run: chmod +x ./oxlint
working-directory: ${{ matrix.path }}
- name: Run
working-directory: ${{ matrix.path }}
run: ${{ matrix.command }}