Skip to content

Commit 1a81895

Browse files
committed
ci: add test and coverage GitHub Actions
Signed-off-by: Tierney Cyren <[email protected]>
1 parent 31ab0b9 commit 1a81895

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Test Suite: Linter"
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
coverage:
12+
if: github.repository == 'twilio-labs/plugin-token'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: current
21+
- name: Run npm install
22+
run: npm install
23+
- name: Run npm run coverage
24+
run: npm run coverage

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Test Suite: Linter"
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
if: github.repository == 'twilio-labs/plugin-token'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: current
21+
- name: Run npm install
22+
run: npm install
23+
- name: Run npm run test
24+
run: npm run test

0 commit comments

Comments
 (0)