ci(commitlint,workflow): added GitHub action workflow to run commitlint and tests on push and pr

This commit is contained in:
Hackntosh 2023-09-30 18:33:16 -03:00
parent 1c3e46cebb
commit 8412bfee86
2 changed files with 32 additions and 0 deletions

11
.github/workflows/commitlint.yml vendored Normal file
View file

@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request, push]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4

21
.github/workflows/run-tests.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci
- run: npx vitest run