Skip to content

Commit

Permalink
ch: Setup CI workflow for testing, coverage reporting, building and l…
Browse files Browse the repository at this point in the history
…inting
  • Loading branch information
aimedivin committed Apr 26, 2024
1 parent 7149873 commit 17b2462
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: knights-ecomm-be CI

on: [push, pull_request]

jobs:
build-lint-test-coverage:
runs-on: ubuntu-latest

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

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Install dependencies
run: npm install

- name: Run ESLint and Prettier
run: npm run lint

- name: Build project
run: npm run build --if-present

- name: Run tests
run: npm test

- name: Upload coverage report to Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 17b2462

Please sign in to comment.