diff --git a/.github/workflows/always.yml b/.github/workflows/always.yml index 42ba5c0..8415c7b 100644 --- a/.github/workflows/always.yml +++ b/.github/workflows/always.yml @@ -4,34 +4,13 @@ on: workflow_dispatch: # Allows you to run this workflow manually from the Actions tab jobs: - # TODO move me to common - # SRC https://medium.com/attest-product-and-technology/adding-a-unique-github-build-identifier-7aa2e83cadca - id: - name: Build Id - runs-on: ubuntu-latest - steps: - - name: id - id: id - run: echo "BUILD_ID=$(date +%s)" >> $GITHUB_ENV - - - name: echo - run: echo ${{ env.BUILD_ID }} - - test: name: npm test - needs: id - runs-on: ubuntu-latest - steps: - - uses: percebus/github-actions-common/.github/actions/checkout@main - - uses: percebus/github-actions-node/.github/actions/setup@main - - uses: percebus/github-actions-npm/.github/actions/install@main - - - name: npm test - run: npm test - - uses: percebus/github-actions-testing/.github/actions/junit@main - with: - list-tests: all + uses: percebus/github-actions-npm/.github/workflows/test.yml@main + with: + reporter: jest-junit + files_pattern: junit.xml + list-tests: all testem: @@ -51,7 +30,7 @@ jobs: max-parallel: 6 matrix: node: - - '' # default (LTS) + - '' # default (20 as of 2025-10-11) - 16 - 17 - 18 @@ -60,11 +39,13 @@ jobs: - 21 - 22 - 23 + - 24 os: - ubuntu-latest - macOS-latest - windows-latest + # uses: percebus/github-actions-npm/.github/workflows/test.yml@main # TODO when it accepts node version runs-on: ${{ matrix.os }} name: npm test @ node:${{ matrix.node }}@${{ matrix.os }} steps: @@ -79,6 +60,6 @@ jobs: run: npm test - uses: percebus/github-actions-testing/.github/actions/junit@main with: - tests_name: Unit Tests @ node:${{ matrix.node }}@${{ matrix.os }} + tests_name: Tests Results @ node:${{ matrix.node }}@${{ matrix.os }} summary_title: "" publish-test-deltas: "false" diff --git a/__tests__/NaN/NaN.unit.spec.js b/__tests__/NaN/NaN.unit.spec.js index d485748..5edf033 100644 --- a/__tests__/NaN/NaN.unit.spec.js +++ b/__tests__/NaN/NaN.unit.spec.js @@ -13,16 +13,12 @@ describe('NaN', () => { }) describe('lodash', () => { - describe('_.isNaN(NaN)', () => { - it('is', () => { - expect(_.isNaN(NaN)).toBe(true) - }) + it('_.isNaN', () => { + expect(_.isNaN(NaN)).toBe(true) }) - describe('_.isNumber(NaN)', () => { - it('is', () => { - expect(_.isNumber(NaN)).toBe(true) - }) + it('_.isNumber', () => { + expect(_.isNumber(NaN)).toBe(true) }) }) diff --git a/__tests__/Object/Array/Array.unit.spec.js b/__tests__/Object/Array/Array.unit.spec.js index 3e34592..3265d72 100644 --- a/__tests__/Object/Array/Array.unit.spec.js +++ b/__tests__/Object/Array/Array.unit.spec.js @@ -63,16 +63,12 @@ describe('Array', () => { }) describe('lodash', () => { - describe('_.isObject', () => { - it('is', () => { - expect(_.isObject(emptyArray)).toBe(true) - }) + it('_.isObject', () => { + expect(_.isObject(emptyArray)).toBe(true) }) - describe('_.isArray', () => { - it('is', () => { - expect(_.isArray(emptyArray)).toBe(true) - }) + it('_.isArray', () => { + expect(_.isArray(emptyArray)).toBe(true) }) }) }) diff --git a/__tests__/Object/Object/Object.unit.spec.js b/__tests__/Object/Object/Object.unit.spec.js index 39f30f6..b71a75f 100644 --- a/__tests__/Object/Object/Object.unit.spec.js +++ b/__tests__/Object/Object/Object.unit.spec.js @@ -34,10 +34,8 @@ describe('Object', () => { }) describe('lodash', () => { - describe('_.isObject', () => { - it('is', () => { - expect(_.isObject(emptyObject)).toBe(true) - }) + it('_.isObject', () => { + expect(_.isObject(emptyObject)).toBe(true) }) describe('_.isArray', () => { diff --git a/__tests__/nothing/null.unit.spec.js b/__tests__/nothing/null.unit.spec.js index 001484a..995d5a9 100644 --- a/__tests__/nothing/null.unit.spec.js +++ b/__tests__/nothing/null.unit.spec.js @@ -13,7 +13,7 @@ describe('null', () => { }) describe('Number', () => { - describe('isNaN(null)', () => { + describe('isNaN', () => { it('is NOT', () => { expect(isNaN(null)).toBe(false) }) @@ -21,10 +21,8 @@ describe('null', () => { }) describe('lodash', () => { - describe('_.isNull(null)', () => { - it('is', () => { - expect(_.isNull(null)).toBe(true) - }) + it('_.isNull', () => { + expect(_.isNull(null)).toBe(true) }) }) diff --git a/__tests__/nothing/undefined.unit.spec.js b/__tests__/nothing/undefined.unit.spec.js index 27a594d..e8a9a5d 100644 --- a/__tests__/nothing/undefined.unit.spec.js +++ b/__tests__/nothing/undefined.unit.spec.js @@ -6,10 +6,8 @@ describe('undefined', () => { }) describe('Number', () => { - describe('isNaN(undefined)', () => { - it('is', () => { - expect(isNaN(undefined)).toBe(true) - }) + it('isNaN(undefined)', () => { + expect(isNaN(undefined)).toBe(true) }) }) @@ -24,10 +22,8 @@ describe('undefined', () => { }) describe('lodash', () => { - describe('_.isUndefined(undefined)', () => { - it('is', () => { - expect(_.isUndefined(undefined)).toBe(true) - }) + it('_.isUndefined', () => { + expect(_.isUndefined(undefined)).toBe(true) }) })