Skip to content

Commit

Permalink
ci: create pr-tests.yml and remove pull_request event from tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fityannugroho committed Oct 6, 2023
1 parent 136748f commit 446383b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Test the PR"
on:
pull_request:
branches:
- main
jobs:
run_test:
name: "Run tests"
runs-on: ubuntu-latest

strategy:
max-parallel: 1
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases

steps:
- uses: actions/checkout@v3
- name: Install modules
run: npm ci
- name: Run unit tests
run: npm run test
- name: Build
run: npm run build
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run_test:
name: "Run tests"
Expand Down

0 comments on commit 446383b

Please sign in to comment.