Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code quality workflow #281

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 🚧 Code quality

on:
push:
branches:
- main
pull_request:
pratishta marked this conversation as resolved.
Show resolved Hide resolved

jobs:
lint:
name: πŸ”Ž Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up node env
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
pratishta marked this conversation as resolved.
Show resolved Hide resolved
unit:
name: πŸ§ͺ Unit tests
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Set up node env
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test
e2e:
name: 🎒 End to end tests
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Set up node env
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run end to end tests
run: npm run test:e2e