aboutsummaryrefslogtreecommitdiffstats
path: root/library/Sortable/.circleci/config.yml
blob: ffbb4f1a7ca9efe8a21ad91c0895e7ac6691b6fa (plain) (blame)
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
version: 2.0
jobs:
  build:
    docker:
      - image: circleci/node:10.16-browsers
    steps:
      - checkout

      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-

      - run: npm install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      - run: npm run build:umd

      - run:
          name: Compatibility Test
          command: |
            if [ -z "$CIRCLE_PR_NUMBER" ];
            then
              npm run test:compat
            fi
      - run: npm run test

      - store_test_results:
          path: /tmp/test-results