Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
DATABASE_URL=postgresql://root:root@localhost:5432/lifecycle
REDIS_URL=redis://localhost:6379
GITHUB_WEBHOOK_SECRET='o1o1o1o1'
CODEFRESH_API_KEY='o1o1o1o1o1'
GITHUB_PRIVATE_KEY='o1o1o1o1o1'
GITHUB_APP_INSTALLATION_ID='100000'
ENVIRONMENT=dev
DEBUG=lifecycle*
APP_ENV=dev
LIFECYCLE_MODE=all
PORT=3000
LOG_LEVEL=debug
GITHUB_APP_ID=1000
GITHUB_CLIENT_SECRET=test-test-test
AWS_DEFAULT_REGION=us-west-2
GITHUB_APP_NAME=test-test-test
GITHUB_CLIENT_ID=100000000000
CODEFRESH_PIPELINE=lifecycle/lifecycle-build
TEST_REPOSITORY_NAME=test-test-test
TEST_REPOSITORY_ID=100000
SUBNET_IDS='subnet-001, subnet-002, subnet-003'
DEFAULT_ACM_CERTIFICATE=''
DEPLOYMENT_NAMESPACE=testtesttest
API_URL='deprecated'
GOOGLE_DEPLOY_DNS_NAME='deprecated'
GOOGLE_HOST_PROJECT_ID='deprecated'
K8S_BEARER_TOKEN='deprecated'
FASTLY_TOKEN='1234'
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js CI

on:
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Load .env file
uses: xom9ikk/dotenv@v2
with:
mode: ci
- run: pnpm install -r --frozen-lockfile
- run: pnpm lint
# - run: pnpm ts-check need fixes
- run: pnpm test
- run: pnpm build
env:
CI: true
Loading