Skip to content

Feat(ops): Add CI/CD pipeline #2

Feat(ops): Add CI/CD pipeline

Feat(ops): Add CI/CD pipeline #2

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches:
- main
- dev
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: write
checks: write
pull-requests: write
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ !github.event.pull_request.draft || github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: 📥 Download deps
run: npm install
- name: 🔬 Lint
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_args: "**/*.{mjs,ts,tsx}"
prettier: true
prettier_args: "--config ./.prettierrc.mjs --list-different \"**/*.{js,json,ts,tsx,css,md}\""
build:
name: ⚙️ Build
timeout-minutes: 10
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft || github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: 📥 Download deps
run: npm install
- name: ⚙️ Build
run: make build