Skip to content

Commit

Permalink
add workflow to run test on PR's and push to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed May 17, 2024
1 parent 6d111f5 commit 7005a3d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run test for dmX on push to main and PR's
on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test

0 comments on commit 7005a3d

Please sign in to comment.