Skip to content

ci: add conventional commit validation #33

ci: add conventional commit validation

ci: add conventional commit validation #33

Workflow file for this run

name: Validate
on:
push:
branches:
- '*'
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: PR conventional commit validation
uses: ytanikin/PRConventionalCommits@v1.1.0
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
services:
postgres:
image: postgres:13.12
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: megahertz
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test unit
- run: yarn test integration --runInBand --detectOpenHandles --force-exit
- run: yarn test e2e --runInBand --detectOpenHandles --force-exit