Skip to content

Commit

Permalink
ci: add npm test step to GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimAziev committed Apr 16, 2024
1 parent dbac199 commit 63266df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ jobs:

- name: Run a build script
run: npm run build

- name: Run a build script
run: npm run test
14 changes: 14 additions & 0 deletions .github/workflows/deploy-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ jobs:
name: release-zip
path: ${{ env.ZIP_NAME }}

RunTests:
needs: PrepareBuildAndZip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Run Test Suite
run: npm run test

CreateAndUploadRelease:
needs: [PrepareBuildAndZip]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 63266df

Please sign in to comment.