Skip to content

Add CI/CD

Add CI/CD #10

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
- dev
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check Out Code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup
uses: ./.github/actions/setup
- name: Run Checks
shell: bash
run: npm run check
test:
runs-on: ubuntu-latest
steps:
- name: Check Out Code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup
uses: ./.github/actions/setup
- name: Run Tests
shell: bash
run: npm run test
deploy:
runs-on: ubuntu-latest
needs:
- check
- test
steps:
- name: Check Out Code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup
uses: ./.github/actions/setup
- name: Build
shell: bash
run: npm run build
- name: Deploy
shell: bash
run: echo deploying to cloudflare