Skip to content

Commit

Permalink
ci: add test and coverage GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <[email protected]>
  • Loading branch information
bnb committed Feb 20, 2025
1 parent 31ab0b9 commit 1a81895
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Test Suite: Linter"

on:
push:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
coverage:
if: github.repository == 'twilio-labs/plugin-token'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install
run: npm install
- name: Run npm run coverage
run: npm run coverage
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Test Suite: Linter"

on:
push:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
test:
if: github.repository == 'twilio-labs/plugin-token'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: current
- name: Run npm install
run: npm install
- name: Run npm run test
run: npm run test

0 comments on commit 1a81895

Please sign in to comment.