Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 9 additions & 28 deletions .github/workflows/always.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -51,7 +30,7 @@ jobs:
max-parallel: 6
matrix:
node:
- '' # default (LTS)
- '' # default (20 as of 2025-10-11)
- 16
- 17
- 18
Expand All @@ -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:
Expand All @@ -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"
12 changes: 4 additions & 8 deletions __tests__/NaN/NaN.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

Expand Down
12 changes: 4 additions & 8 deletions __tests__/Object/Array/Array.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
})
Expand Down
6 changes: 2 additions & 4 deletions __tests__/Object/Object/Object.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
8 changes: 3 additions & 5 deletions __tests__/nothing/null.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ describe('null', () => {
})

describe('Number', () => {
describe('isNaN(null)', () => {
describe('isNaN', () => {
it('is NOT', () => {
expect(isNaN(null)).toBe(false)
})
})
})

describe('lodash', () => {
describe('_.isNull(null)', () => {
it('is', () => {
expect(_.isNull(null)).toBe(true)
})
it('_.isNull', () => {
expect(_.isNull(null)).toBe(true)
})
})

Expand Down
12 changes: 4 additions & 8 deletions __tests__/nothing/undefined.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

Expand All @@ -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)
})
})

Expand Down