Skip to content

Commit

Permalink
feat: Setup automatic test when PR is open on main (#48)
Browse files Browse the repository at this point in the history
* test on PR

* added comment (#47)

Co-authored-by: Gabriele Granello <gabriele@opensystemslab.io>

* clean the testing branch

---------

Co-authored-by: Gabriele Granello <gabriele@opensystemslab.io>
  • Loading branch information
gabrielegranello and Gabriele Granello authored Aug 9, 2024
1 parent 75e1aec commit 8ccd3fd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests on Pull Request

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

0 comments on commit 8ccd3fd

Please sign in to comment.