File: continuous-integration.yml

package info (click to toggle)
ts-node 10.9.2%2B~cs64.13.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,388 kB
  • sloc: javascript: 15,071; sh: 83; makefile: 15; xml: 9
file content (59 lines) | stat: -rw-r--r-- 1,386 bytes parent folder | download | duplicates (2)
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
name: Continuous Integration
on:
  # branches pushed by collaborators
  push:
    branches:
      - master
  # pull request from non-collaborators
  pull_request: {}
  # nightly
  # schedule:
  #   - cron:  '0 0 * * *'
jobs:
  test:
    name: "Test: ${{ matrix.os }}, node ${{ matrix.node }}"
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        # Don't forget to add all new flavors to this list!
        node: 
          - "12"
          - "14"
          - "15"
          - "16"
          - "17"
    steps:
      # checkout code
      - uses: actions/checkout@v2
      # install node
      - name: Use Node.js ${{ matrix.node }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      # Downgrade npm as necessary
      - run: |
          case "${{ matrix.node }}" in
            5|5.6.0)
              npm install -g npm@4;
              ;;
          esac
      - run: npm install
      - run: |
          case "${{ matrix.node }}" in
          4|5.6.0)
            ./node_modules/.bin/tap test/node-version-test.js;
            ;;
          *)
            npm run tap;
            ;;
          esac
          case "${{ matrix.node }}" in
          4|5.6.0|5|6|8)
            ;;
          *)
            npm run eslint;
            npm run bench;
            ;;
          esac