Bump sinon from 17.0.2 to 18.0.0 (#133) #451
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Release | |
# Run this job on all pushes and pull requests | |
# as well as tags with a semantic version | |
on: | |
push: | |
branches: | |
- "master" | |
tags: | |
# normal versions | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
# pre-releases | |
- "v[0-9]+.[0-9]+.[0-9]+-**" | |
pull_request: {} | |
# Cancel previous PR/branch runs when a new commit is pushed | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# Performs quick checks before the expensive test runs | |
check-and-lint: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ioBroker/testing-action-check@v1 | |
with: | |
node-version: '20.x' | |
# Uncomment the following line if your adapter cannot be installed using 'npm ci' | |
# install-command: 'npm install' | |
type-checking: true | |
lint: true | |
# Runs adapter tests on all supported node versions and OSes | |
adapter-tests: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
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 }} | |
# Uncomment the following line if your adapter cannot be installed using 'npm ci' | |
# install-command: 'npm install' | |
build: true | |
deploy: | |
needs: [check-and-lint, adapter-tests] | |
# Trigger this step only when a commit on any branch is tagged with a version number | |
if: | | |
contains(github.event.head_commit.message, '[skip ci]') == false && | |
github.event_name == 'push' && | |
startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
# Write permissions are required to create Github releases | |
permissions: | |
contents: write | |
steps: | |
- uses: ioBroker/testing-action-deploy@v1 | |
with: | |
node-version: '20.x' | |
# Uncomment the following line if your adapter cannot be installed using 'npm ci' | |
# install-command: 'npm install' | |
build: true | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
sentry: true | |
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
sentry-project: "iobroker-awtrix-light" | |
sentry-version-prefix: "iobroker.awtrix-light" | |
sentry-sourcemap-paths: "build/" | |
# If your sentry project is linked to a GitHub repository, you can enable the following option | |
# sentry-github-integration: true |