Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#104] Add tests for add-ons #112

Merged
merged 15 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/test-cli-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test CLI Tool

on: push

jobs:
test-cli-tool:
name: Run CLI Tool tests with Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2

- name: Setup node and restore cached dependencies
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: NPM install
run: npm ci && lerna bootstrap --ci

- name: Run tests
run: npm run test --workspace=packages/cli-tool
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Test
name: Test CRA Template

on: push

jobs:
test:
name: Bootstrap app, run linters and tests with Node ${{ matrix.node }}
name: Bootstrap CRA app, run linters and tests with Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@

npm-debug.log*

# tests
/test-app
tyrro marked this conversation as resolved.
Show resolved Hide resolved

# editors
.vscode
Loading