]>
Commit | Line | Data |
---|---|---|
eb39fafa DC |
1 | name: CI |
2 | on: | |
3 | push: | |
609c276f | 4 | branches: [master, main] |
eb39fafa | 5 | pull_request: |
609c276f | 6 | branches: [master, main] |
eb39fafa DC |
7 | |
8 | jobs: | |
9 | verify_files: | |
10 | name: Verify Files | |
11 | runs-on: ubuntu-latest | |
12 | steps: | |
13 | - uses: actions/checkout@v2 | |
609c276f TL |
14 | - uses: actions/setup-node@v2 |
15 | with: | |
16 | node-version: '14.x' | |
eb39fafa DC |
17 | - name: Install Packages |
18 | run: npm install | |
19 | - name: Lint Files | |
20 | run: node Makefile lint | |
21 | - name: Check Rule Files | |
22 | run: node Makefile checkRuleFiles | |
23 | - name: Check Licenses | |
24 | run: node Makefile checkLicenses | |
25 | ||
26 | test_on_node: | |
27 | name: Test | |
28 | strategy: | |
29 | matrix: | |
56c4a2cb | 30 | os: [ubuntu-latest] |
609c276f | 31 | node: [17.x, 16.x, 14.x, 12.x, "12.22.0"] |
56c4a2cb | 32 | include: |
eb39fafa | 33 | - os: windows-latest |
56c4a2cb | 34 | node: "12.x" |
eb39fafa | 35 | - os: macOS-latest |
56c4a2cb | 36 | node: "12.x" |
eb39fafa DC |
37 | runs-on: ${{ matrix.os }} |
38 | steps: | |
39 | - uses: actions/checkout@v2 | |
609c276f | 40 | - uses: actions/setup-node@v2 |
eb39fafa DC |
41 | with: |
42 | node-version: ${{ matrix.node }} | |
43 | - name: Install Packages | |
44 | run: npm install | |
45 | - name: Test | |
46 | run: node Makefile mocha | |
47 | - name: Fuzz Test | |
48 | run: node Makefile fuzz | |
49 | ||
50 | test_on_browser: | |
51 | name: Browser Test | |
52 | runs-on: ubuntu-latest | |
53 | steps: | |
54 | - uses: actions/checkout@v2 | |
609c276f | 55 | - uses: actions/setup-node@v2 |
5422a9cc TL |
56 | with: |
57 | node-version: '12' | |
eb39fafa DC |
58 | - name: Install Packages |
59 | run: npm install | |
60 | - name: Test | |
61 | run: node Makefile karma | |
62 | - name: Fuzz Test | |
63 | run: node Makefile fuzz |