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
15 changes: 15 additions & 0 deletions .github/.kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version = 1

[approve]
auto_approve_usernames = ["cq-bot"]

[merge.message]
body = "pull_request_body"
cut_body_after = "Use the following steps to ensure your PR is ready to be reviewed"
cut_body_and_text = true
cut_body_before = "<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 -->"
title = "pull_request_title"

[merge]
blocking_labels = ["wip", "no automerge"]
notify_on_conflict = false
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLTE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: CloudQuery Central Issues Tracker
url: https://github.com/cloudquery/cloudquery/issues
about: Please file any issue with regards to any of CloudQuery repo in the main repository with the right labels.
- name: CloudQuery Discord Support
url: https://community.cloudquery.io/
about: Join our community to get live support from us and the community.
3 changes: 3 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
extends: ["github>cloudquery/.github//.github/renovate-node-default.json5"],
}
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: CI

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: |
npm run build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

-
# Required for the package command tests to work
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Test
run: |
npm test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: |
npm run lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 'lts/*'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Format
run: |
npm run format:check
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim
FROM node:20-slim as builder

WORKDIR /app

Expand All @@ -10,6 +10,16 @@ COPY . .

RUN npm run build

FROM node:20-slim AS final

WORKDIR /app

COPY --from=builder ./app/dist ./dist

COPY package*.json ./

RUN npm ci --omit=dev

EXPOSE 7777

ENTRYPOINT ["node", "dist/main.js"]
Expand Down
File renamed without changes.
Loading