Skip to content

Commit efc4188

Browse files
authored
Merge pull request #112 from nimblehq/feature/gh-104-tests-for-addons
[#104] Add tests for add-ons
2 parents 10ba7ce + 20c6bca commit efc4188

File tree

24 files changed

+10191
-20588
lines changed

24 files changed

+10191
-20588
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test CLI Tool
2+
3+
on: push
4+
5+
jobs:
6+
test-cli-tool:
7+
name: Run CLI Tool tests with Node ${{ matrix.node }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: [16]
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/cancel-workflow-action@0.9.1
15+
with:
16+
access_token: ${{ github.token }}
17+
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup node and restore cached dependencies
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node }}
25+
cache: "npm"
26+
27+
- name: NPM install
28+
run: npm ci && lerna bootstrap --ci
29+
30+
- name: Run tests
31+
run: npm run test --workspace=packages/cli-tool
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Test
1+
name: Test CRA Template
22

33
on: push
44

55
jobs:
66
test:
7-
name: Bootstrap app, run linters and tests with Node ${{ matrix.node }}
7+
name: Bootstrap CRA app, run linters and tests with Node ${{ matrix.node }}
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88

99
npm-debug.log*
1010

11+
# tests
12+
/test-app
13+
1114
# editors
1215
.vscode

0 commit comments

Comments
 (0)