From 7c52b2ff9f89bfdd40a8743e235f343ca18326d2 Mon Sep 17 00:00:00 2001 From: Jason Fischer Date: Wed, 10 Apr 2024 10:45:01 -0500 Subject: [PATCH] no-log: add CI --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3476a1d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +'on': + push: + branches: + - master + - beta + - '[0-9].[0-9x].x' + paths-ignore: + - README.md + - .husky/* + - .idea/* + - .vscode/* + pull_request: null + workflow_dispatch: null +jobs: + build_and_package: + runs-on: ubuntu-latest + env: + NODE_OPTIONS: '--max_old_space_size=4096' + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + if: ${{ github.event_name != 'pull_request' }} + with: + token: ${{ secrets.DEVOPS_TOKEN }} + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + cache: npm + - name: Install NPM Dependencies + run: npm ci --verbose + - name: Get number of CPU cores + uses: SimenB/github-actions-cpu-cores@v1 + id: cpu-cores + - name: Run Tests + run: npm test -- --coverage --maxWorkers=${{ steps.cpu-cores.outputs.count }}