Skip to content

Commit

Permalink
cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
holomekc committed Dec 2, 2023
1 parent b2108f6 commit 6f40086
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 161 deletions.
17 changes: 0 additions & 17 deletions .github/auto-merge.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
interval: weekly
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 20
Expand Down
143 changes: 0 additions & 143 deletions .github/workflows/test-and-release.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test

# Run this job on all pushes and pull requests
# as well as tags with a semantic version
on:
push:
branches:
- "*"
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

strategy:
matrix:
node-version: [ 16.x ]

steps:
- uses: ioBroker/testing-action-check@v1
with:
node-version: '16.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

needs: [ check-and-lint ]

runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ 16.x, 18.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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
![Number of Installations (latest)](http://iobroker.live/badges/bshb-installed.svg)
![Number of Installations (stable)](http://iobroker.live/badges/bshb-stable.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/holomekc/ioBroker.bshb/badge.svg)](https://snyk.io/test/github/holomekc/ioBroker.bshb)
[![Main](https://github.com/holomekc/iobroker.bshb/actions/workflows/test.yml/badge.svg)](https://github.com/holomekc/iobroker.bshb/actions/workflows/test.yml)

[![NPM](https://nodei.co/npm/iobroker.bshb.png)](https://nodei.co/npm/iobroker.bshb/)

Expand Down

0 comments on commit 6f40086

Please sign in to comment.