aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: f4e9f9ddd521368edf872d287013d2737edb41e0 (about) (plain)
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
name: Build testing
on:
  pull_request:
  push:
    branches: [ master ]
jobs:
  ufuzz:
    strategy:
      fail-fast: false
      matrix:
        options:
          - '-mb braces'
          - '--ie -c'
          - '-mc'
          - '-p acorn --toplevel -mco spidermonkey'
          - '--toplevel -mc passes=3,pure_getters,unsafe'
        script:
          - acorn.sh
          - bootstrap.sh
          - buble.sh
          - butternut.sh
          - mathjs.sh
          - rollup-es.sh
          - rollup-ts.sh
          - sucrase.sh
          - web-tooling-benchmark.sh
        include:
          - node: '14'
            script: acorn.sh
          - node: '14'
            script: bootstrap.sh
          - node: '14'
            script: buble.sh
          - node: '14'
            script: butternut.sh
          - node: '14'
            script: mathjs.sh
          - node: '8'
            script: rollup-es.sh
          - node: '14'
            script: rollup-ts.sh
          - node: '14'
            script: sucrase.sh
          - node: '14'
            script: web-tooling-benchmark.sh
    name: ${{ matrix.script }} ${{ matrix.options }}
    runs-on: ubuntu-latest
    env:
      NODE: ${{ matrix.node }}
      OPTIONS: ${{ matrix.options }}
      SCRIPT: ${{ matrix.script }}
    steps:
      - uses: actions/checkout@v2
      - name: Perform uglify, build & test
        shell: bash
        run: |
          . ./test/release/install.sh
          ./test/release/$SCRIPT $OPTIONS