Skip to content

Commit

Permalink
feat: Add New GitHub Action (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
epsjunior authored Jan 9, 2025
1 parent e48e31e commit 140565c
Show file tree
Hide file tree
Showing 3 changed files with 3,592 additions and 1,866 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/validate-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI Workflow

on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm ci

- name: Build the project
run: npm run build

- name: Run tests
run: npm run test:coverage

- name: Upload coverage report
if: success()
uses: codecov/[email protected]
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
directory: coverage
Loading

0 comments on commit 140565c

Please sign in to comment.