Skip to content

Shared Github Actions for ioBroker testing workflows: Adapter test step

Notifications You must be signed in to change notification settings

ioBroker/testing-action-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

testing-action-adapter

Shared Github Actions for ioBroker testing workflows: Adapter tests

Inputs

Input Description Required? Default
node-version Node.js version to use in tests. Should be LTS. -
engine-strict Activate npm checking of engine requirements for all packages including dependencies. 'true'
install-command Overwrite the default install command. When changing this, package-cache may need to be disabled. 'npm ci'
package-cache For which package manager dependencies should be cached. Set to 'false' or '' to disable caching. More documentation here. 'npm'
os The operation system to use -
build Set to 'true' when the adapter needs a build step before testing 'false'
build-command Overwrite the default build command 'npm run build'
extra-tests Add an additional command to run before ioBroker's tests -
unit-test-command Overwrite the default unit test command 'npm run test:unit'
integration-test-command Overwrite the default integration test command 'npm run test:integration'

Usage

# ... rest of your workflow ...

jobs:
  adapter-tests:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        node-version: [18.x, 20.x]
        os: [ubuntu-latest, windows-latest, macos-latest]

    steps:
      - uses: ioBroker/testing-action-adapter@v1
        with:
          node-version: ${{ matrix.node-version }}
          os: ${{ matrix.os }}
          # build: 'true' # optional

  # ... other jobs

About

Shared Github Actions for ioBroker testing workflows: Adapter test step

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages