From ce94f6699d106611effde99c0b96841af6d61c9c Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Sat, 19 Sep 2020 14:35:15 -0400 Subject: [PATCH] Remove dependencies status badge and use GitHub Actions (#1089) --- .circleci/config.yml | 39 ------------------- .github/workflows/codeql-analysis.yml | 54 --------------------------- .github/workflows/workflow.yml | 33 ++++++++++++++++ README.md | 3 +- 4 files changed, 34 insertions(+), 95 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .github/workflows/codeql-analysis.yml create mode 100644 .github/workflows/workflow.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 33634e05d..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Javascript Node CircleCI 2.1 configuration file -# -version: 2.1 -orbs: - codecov: codecov/codecov@1.1.1 -jobs: - build: - docker: - # specify the version you desire here - - image: circleci/node:13.14.0 - - working_directory: ~/repo - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: npm ci --prefer-offline --no-audit - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - - run: npm run type-check - - - run: npm run lint - - - run: npm run test - - # Upload coverage report - - codecov/upload: - file: coverage/lcov.info diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 5e6e5a012..000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [main, ] - pull_request: - # The branches below must be a subset of the branches above - branches: [main] - schedule: - - cron: '0 22 * * 4' - -jobs: - analyse: - name: Analyse - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - # Override language selection by uncommenting this and choosing your languages - with: - languages: javascript - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 000000000..fbbca2cb5 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,33 @@ +name: Tests +on: [push] +jobs: + run: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '13.14' + - run: npm ci + - run: npm run type-check + - run: npm run lint + - run: npm run test + env: + CI: true + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: coverage/lcov.info diff --git a/README.md b/README.md index 93a73a4c1..e10e1e800 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,9 @@

- + -