diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3371b59..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,87 +0,0 @@ -unit_tests: &unit_tests - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - - run: - name: NPM Rebuild - command: npm install - - run: - name: Run unit tests. - command: npm run ci:test -jobs: - dependency_cache: - docker: - - image: rollupcabal/circleci-node-base:latest - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - - run: - name: Install Dependencies - command: npm install - - save_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - paths: - - ./node_modules - node-v12-latest: - docker: - - image: rollupcabal/circleci-node-v12:latest - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - - run: - name: NPM Rebuild - command: npm install - - run: - name: Run unit tests. - command: npm run ci:coverage - - run: - name: Submit coverage data to codecov. - command: bash <(curl -s https://codecov.io/bash) - when: on_success - node-v14-latest: - docker: - - image: rollupcabal/circleci-node-v14:latest - <<: *unit_tests - analysis: - docker: - - image: rollupcabal/circleci-node-base:latest - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - - run: - name: NPM Rebuild - command: npm install - - run: - name: Run Linting - command: npm run lint - - run: - name: Run NPM Audit - command: npm run security -version: 2.0 -workflows: - version: 2 - validate: - jobs: - - dependency_cache - - analysis: - requires: - - dependency_cache - filters: - tags: - only: /.*/ - - node-v14-latest: - requires: - - analysis - filters: - tags: - only: /.*/ - - node-v12-latest: - requires: - - analysis - filters: - tags: - only: /.*/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f31eae4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,50 @@ +name: Run Tests + +on: + push: + branches: + - master + pull_request: + + +jobs: + test: + strategy: + fail-fast: false + matrix: + node_version: + - "" + - "12" + name: Node.js ${{ matrix.node_version }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: NPM Rebuild + run: npm install + + - name: Run unit tests + run: npm run ci:coverage + + - name: Submit coverage data to codecov. + run: bash <(curl -s https://codecov.io/bash) + + analysis: + strategy: + fail-fast: false + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: NPM Rebuild + run: npm install + + - name: Run Linting + run: npm run lint + + # Disabled temporarily + # - name: Run NPM Audit + # run: npm run security +