Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/deploy-landing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Deploy Landing Page

on:
push:
branches: [main, master]
paths:
- 'landing/**'
- '.github/workflows/deploy-landing.yml'
workflow_dispatch:

env:
NODE_VERSION: '20'

jobs:
ci:
name: CI — Test & Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./landing

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: ./landing/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Build
run: npm run build
env:
PUBLIC_APP_URL: ${{ secrets.PUBLIC_APP_URL }}

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: landing-dist
path: landing/dist/

cd:
name: CD — Deploy to Netlify
needs: ci
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: landing-dist
path: landing/dist/

- name: Install Netlify CLI
run: npm install -g netlify-cli

- name: Deploy to Netlify
run: |
netlify deploy \
--dir=landing/dist \
--prod \
--auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \
--site=${{ secrets.NETLIFY_SITE_ID }}
49 changes: 49 additions & 0 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PR Review

on:
pull_request:
branches:
- dev
- main
types:
- opened
- synchronize
- reopened
- ready_for_review

concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: read

jobs:
frontend:
name: Frontend validation
runs-on: ubuntu-latest

if: github.event.pull_request.draft == false

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Run lint
run: bun run lint

- name: Run typecheck
run: bun run check

- name: Run tests
run: bun test

- name: Build application
run: bun run build
41 changes: 41 additions & 0 deletions landing/.netlify/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
redirectsOrigin = "config"
plugins = []
headers = []

[functions]

[functions."*"]

[build]
publish = "C:\\Users\\karla.rosario_a3data\\OneDrive\\Documentos\\GitHub\\condocombat\\landing\\dist"
publishOrigin = "config"
commandOrigin = "config"
base = "C:\\Users\\karla.rosario_a3data\\OneDrive\\Documentos\\GitHub\\condocombat\\landing"
command = "npm run build"

[build.environment]
NODE_VERSION = "20"

[build.processing]

[build.processing.css]

[build.processing.html]

[build.processing.images]

[build.processing.js]

[build.services]

[[redirects]]
from = "/*"
to = "/index.html"
status = 200.0
force = false

[redirects.query]

[redirects.conditions]

[redirects.headers]
Empty file removed landing/dist/.gitkeep
Empty file.
11 changes: 11 additions & 0 deletions landing/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build]
command = "npm run build"
publish = "dist"

[build.environment]
NODE_VERSION = "20"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200