document ECMAScript quirks (#5148)
[UglifyJS.git] / .github / workflows / ci.yml
1 name: CI
2 on:
3   pull_request:
4   push:
5     branches: [ master ]
6 jobs:
7   test:
8     strategy:
9       matrix:
10         node: [ '0.10', '0.12', '4', '6', '8', '10', '12', '14', latest ]
11         os: [ ubuntu-latest, windows-latest ]
12         script: [ compress, mocha, release/benchmark, release/jetstream ]
13     name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }}
14     runs-on: ${{ matrix.os }}
15     env:
16       NODE: ${{ matrix.node }}
17       TYPE: ${{ matrix.script }}
18     steps:
19       - uses: actions/checkout@v2
20       - uses: actions/cache@v2
21         with:
22           path: tmp
23           key: tmp ${{ matrix.script }}
24       - name: Perform tests
25         shell: bash
26         run: |
27           . ./test/release/install.sh
28           node test/$TYPE