Skip to content

[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build #10

[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build

[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build #10

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
- develop
jobs:
formatter_prettier:
name: formatter:prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run format:c
linter_eslint:
name: linter:eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint
tests_units:
name: tests:units
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run test:cov
build_app:
name: build:app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build