Skip to content

Added github workflows cd with templates. #6

Added github workflows cd with templates.

Added github workflows cd with templates. #6

Workflow file for this run

name: Continuous Integration
# this is trigger CI on push and PR for main branch only
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# this is trigger CI on all kinds of branches and PRs
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
- name: Run format check
run: pnpm run format
- name: Check commit messages
uses: wagoid/commitlint-github-action@v5
with:
configFile: commitlint.config.cjs