Closed gabrielegranello closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
fairhold-dashboard | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 8, 2024 3:37pm |
What does this PR do?
It allows to automatically run
rpm run test
when a PR is made to merge into main. It does so by creating atest-on-pull-request.yml
file inside the folder.github/worflows
. Explanation of the Workflow:on: pull_request
: This specifies that the workflow should run on a pull request event.jobs
: Defines the jobs that will run as part of this workflow.runs-on: ubuntu-latest
: The environment where the job will run, here it's an Ubuntu machine.steps
: The specific steps the job will execute:Checkout repository
: This step checks out your repository so the workflow can access the code.Set up Node.js
: This step installs the specified version of Node.js.Install dependencies
: This stepruns npm install
to install the necessary dependencies. Run tests: Finally, this step runs your test script usingnpm run test
.Before merging we should now see the test being passed: