diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml new file mode 100644 index 0000000..ce1e74c --- /dev/null +++ b/.github/workflows/pr-test.yml @@ -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 + \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0449771..00567ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}