Skip to content

Commit

Permalink
Add workflow to test PRs (#196)
Browse files Browse the repository at this point in the history
* Add workflow to test PRs

* Update pr-test.yml
  • Loading branch information
just1and0 authored Jan 11, 2025
1 parent d883dca commit 70abe07
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Build and Tests on Pull Request

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- run: npm install --legacy-peer-deps
- name: Run Tests
run: |
npx jest --ci --coverage --maxWorkers=2
continue-on-error: false
- name: TypeScript Check
run: yarn tsc
- run: yarn build

1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: TypeScript Check
run: yarn tsc
- run: yarn build
- run: yarn audit
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 70abe07

Please sign in to comment.