Skip to content

Commit

Permalink
Create actions.yml
Browse files Browse the repository at this point in the history
CI/CD Actions created
  • Loading branch information
PrasanthVijayy authored Oct 16, 2024
1 parent d1abaff commit fd97150
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Node.js CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

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

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

- name: Generate test report (JUnit format)
run: npm test -- --reporters=jest-junit

- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: jest-test-results
path: ./jest-test-results.xml

- name: Generate coverage report
run: npm run test:coverage

- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./coverage

0 comments on commit fd97150

Please sign in to comment.