Skip to content

Commit a1cccb6

Browse files
test workflow
1 parent a9e7893 commit a1cccb6

File tree

1 file changed

+1
-99
lines changed

1 file changed

+1
-99
lines changed

.github/workflows/test-and-release.yml

+1-99
Original file line numberDiff line numberDiff line change
@@ -154,102 +154,4 @@ jobs:
154154

155155

156156

157-
158-
159-
160-
161-
162-
name: Test and Release
163-
164-
# Run this job on all pushes and pull requests
165-
# as well as tags with a semantic version
166-
on:
167-
push:
168-
branches:
169-
- "master"
170-
tags:
171-
# normal versions
172-
- "v[0-9]+.[0-9]+.[0-9]+"
173-
# pre-releases
174-
- "v[0-9]+.[0-9]+.[0-9]+-**"
175-
pull_request: {}
176-
177-
jobs:
178-
# Performs quick checks before the expensive test runs
179-
check-and-lint:
180-
if: contains(github.event.head_commit.message, '[skip ci]') == false
181-
182-
runs-on: ubuntu-latest
183-
184-
steps:
185-
- uses: ioBroker/testing-action-check@v1
186-
with:
187-
node-version: '18.x'
188-
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
189-
# install-command: 'npm install'
190-
lint: true
191-
192-
# Runs adapter tests on all supported node versions and OSes
193-
adapter-tests:
194-
if: contains(github.event.head_commit.message, '[skip ci]') == false
195-
196-
runs-on: ${{ matrix.os }}
197-
strategy:
198-
matrix:
199-
node-version: [16.x, 18.x, 20.x]
200-
os: [ubuntu-latest, windows-latest, macos-latest]
201-
202-
steps:
203-
- uses: actions/checkout@v1
204-
- name: Use Node.js ${{ matrix.node-version }}
205-
uses: actions/setup-node@v1
206-
with:
207-
node-version: ${{ matrix.node-version }}
208-
209-
- name: Install Dependencies
210-
run: npm install
211-
212-
- name: Run local tests
213-
run: npm test
214-
# - name: Run unit tests
215-
# run: npm run test:unit
216-
# - name: Run integration tests # (linux/osx)
217-
# if: startsWith(runner.OS, 'windows') == false
218-
# run: DEBUG=testing:* npm run test:integration
219-
# - name: Run integration tests # (windows)
220-
# if: startsWith(runner.OS, 'windows')
221-
# run: set DEBUG=testing:* & npm run test:integration
222-
223-
# Deploys the final package to NPM
224-
deploy:
225-
needs: [check-and-lint, adapter-tests]
226-
227-
# Trigger this step only when a commit on any branch is tagged with a version number
228-
if: |
229-
contains(github.event.head_commit.message, '[skip ci]') == false &&
230-
github.event_name == 'push' &&
231-
startsWith(github.ref, 'refs/tags/v')
232-
233-
runs-on: ubuntu-latest
234-
235-
steps:
236-
- uses: ioBroker/testing-action-deploy@v1
237-
with:
238-
node-version: '18.x'
239-
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
240-
# install-command: 'npm install'
241-
npm-token: ${{ secrets.NPM_TOKEN }}
242-
github-token: ${{ secrets.secrets.AUTOMERGER }}
243-
244-
# When using Sentry for error reporting, Sentry can be informed about new releases
245-
# To enable create a API-Token in Sentry (User settings, API keys)
246-
# Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
247-
# Then uncomment and customize the following block:
248-
sentry: false
249-
sentry-url: "https://sentry.io"
250-
sentry-org: "rg-engineering"
251-
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
252-
sentry-project: "iobroker_vis-weather"
253-
sentry-version-prefix: "iobroker.^vis-weather"
254-
# If your sentry project is linked to a GitHub repository, you can enable the following option
255-
# sentry-github-integration: true
157+

0 commit comments

Comments
 (0)