From a07d9ed2f10ea181ae4321e1f10375756c29966a Mon Sep 17 00:00:00 2001 From: James Sumners Date: Wed, 28 Feb 2024 13:05:55 -0500 Subject: [PATCH] debug --- .github/workflows/ci-workflow.yml | 197 +++++++++++++++--------------- 1 file changed, 100 insertions(+), 97 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index f797a96..f66a3f3 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -14,103 +14,103 @@ concurrency: cancel-in-progress: true jobs: -# lint: -# runs-on: ubuntu-latest -# -# strategy: -# matrix: -# node-version: [lts/*] -# -# steps: -# - uses: actions/checkout@v4 -# - name: Use Node.js ${{ matrix.node-version }} -# uses: actions/setup-node@v4 -# with: -# node-version: ${{ matrix.node-version }} -# - name: Install Dependencies -# run: npm ci -# - name: Run Linting -# run: npm run lint -# - name: Inspect Lockfile -# run: npm run lint:lockfile -# -# test_x86_x64: -# strategy: -# matrix: -# os: [ ubuntu-latest, windows-latest, windows-2019 ] -# node: [ 16, 18, 20 ] -# arch: [ x86, x64 ] -# exclude: -# # Ubuntu does not ship x86 builds. -# - { os: ubuntu-latest, arch: x86 } -# runs-on: ${{ matrix.os }} -# name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }} -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Use node ${{ matrix.node }} -# uses: actions/setup-node@v4 -# with: -# node-version: ${{ matrix.node }} -# architecture: ${{ matrix.arch }} -# - name: Install -# run: npm install -# - name: Unit Test -# run: npm run unit -# - name: Post Unit Test Coverage -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# directory: ./coverage/unit/ -# files: lcov.info -# flags: unit-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} -# - name: Integration Test -# run: npm run integration -# - name: Post Integration Test Coverage -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# directory: ./coverage/integration/ -# files: lcov.info -# flags: integration-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} -# -# -# test_macos_arm: -# strategy: -# matrix: -# os: [ macos-14 ] -# node: [ 16, 18, 20 ] -# arch: [ arm64 ] -# runs-on: ${{ matrix.os }} -# name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }} -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Use node ${{ matrix.node }} -# uses: actions/setup-node@v4 -# with: -# node-version: ${{ matrix.node }} -# architecture: ${{ matrix.arch }} -# - name: Install -# run: npm install -# - name: Unit Test -# run: npm run unit -# - name: Post Unit Test Coverage -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# directory: ./coverage/unit/ -# files: lcov.info -# flags: unit-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} -# - name: Integration Test -# run: npm run integration -# - name: Post Integration Test Coverage -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# directory: ./coverage/integration/ -# files: lcov.info -# flags: integration-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} + lint: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [lts/*] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install Dependencies + run: npm ci + - name: Run Linting + run: npm run lint + - name: Inspect Lockfile + run: npm run lint:lockfile + + test_x86_x64: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest, windows-2019 ] + node: [ 16, 18, 20 ] + arch: [ x86, x64 ] + exclude: + # Ubuntu does not ship x86 builds. + - { os: ubuntu-latest, arch: x86 } + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use node ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + architecture: ${{ matrix.arch }} + - name: Install + run: npm install + - name: Unit Test + run: npm run unit + - name: Post Unit Test Coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/unit/ + files: lcov.info + flags: unit-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} + - name: Integration Test + run: npm run integration + - name: Post Integration Test Coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/integration/ + files: lcov.info + flags: integration-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} + + + test_macos_arm: + strategy: + matrix: + os: [ macos-14 ] + node: [ 16, 18, 20 ] + arch: [ arm64 ] + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / Node ${{ matrix.node }} ${{ matrix.arch }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use node ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + architecture: ${{ matrix.arch }} + - name: Install + run: npm install + - name: Unit Test + run: npm run unit + - name: Post Unit Test Coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/unit/ + files: lcov.info + flags: unit-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} + - name: Integration Test + run: npm run integration + - name: Post Integration Test Coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage/integration/ + files: lcov.info + flags: integration-tests-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }} test_linux_arm: # Skip this group if the PR doesn't originate from the main repo. @@ -161,6 +161,9 @@ jobs: rm -rf /host/node_modules 2>/dev/null # Update npm because it seems to fail in node@18 every time npm i -g npm + # npm install will fail on Node 18 every time unless we use this + # very odd fix: + # https://github.com/npm/cli/issues/4652#issuecomment-1126672629 npm install --verbose --maxsockets 1 cp -R node_modules /host/ npm run unit