8000 Add smoke test (#33) · arduino/iot-client-js@1b5d70a · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b5d70a

Browse files
author
Fabrizio Mirabito
authored
Add smoke test (#33)
* Add smoke test * Add test workflow
1 parent fe74683 commit 1b5d70a

File tree

4 files changed

+469
-0
lines changed

4 files changed

+469
-0
lines changed

.github/workflows/test.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest, windows-latest]
14+
15+
runs-on: ${{ matrix.operating-system }}
16+
17+
steps:
18+
- name: Disable EOL conversions
19+
run: git config --global core.autocrlf false
20+
21+
- name: Checkout
22+
uses: actions/checkout@master
23+
24+
- name: Smoke test
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: '12'
28+
- run: npm install
29+
- run: npm run build
30+
- run: cd smoke_test
31+
- run: npm install request
32+
- run: npm install request-promise
33+
- run: ./node_modules/mocha/bin/mocha smoke_test/smoke_test.js
34+
env:
35+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
36+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

0 commit comments

Comments
 (0)
0