mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #99 from reginaldbondoc/add-initial-quality-gate
Add PR gate workflows
This commit is contained in:
41
.github/workflows/check-be-pull-request.yml
vendored
Normal file
41
.github/workflows/check-be-pull-request.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Check Backend Pull Request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened, synchronize ]
|
||||||
|
paths:
|
||||||
|
- 'backend/**'
|
||||||
|
- '!backend/README.md'
|
||||||
|
- '!backend/.*'
|
||||||
|
- 'backend/.eslintrc.js'
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
check-be-pr:
|
||||||
|
name: Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: ☁️ Checkout source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: 🔧 Setup Node 16
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: backend/package-lock.json
|
||||||
|
-
|
||||||
|
name: 📦 Install dependencies
|
||||||
|
run: npm ci --only-production --ignore-scripts
|
||||||
|
working-directory: backend
|
||||||
|
# -
|
||||||
|
# name: 🧪 Run tests
|
||||||
|
# run: npm run test:ci
|
||||||
|
# working-directory: backend
|
||||||
|
-
|
||||||
|
name: 🏗️ Run build
|
||||||
|
run: npm run build
|
||||||
|
working-directory: backend
|
||||||
41
.github/workflows/check-fe-pull-request.yml
vendored
Normal file
41
.github/workflows/check-fe-pull-request.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Check Frontend Pull Request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened, synchronize ]
|
||||||
|
paths:
|
||||||
|
- 'frontend/**'
|
||||||
|
- '!frontend/README.md'
|
||||||
|
- '!frontend/.*'
|
||||||
|
- 'frontend/.eslintrc.js'
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
check-fe-pr:
|
||||||
|
name: Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: ☁️ Checkout source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: 🔧 Setup Node 16
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
-
|
||||||
|
name: 📦 Install dependencies
|
||||||
|
run: npm ci --only-production --ignore-scripts
|
||||||
|
working-directory: frontend
|
||||||
|
# -
|
||||||
|
# name: 🧪 Run tests
|
||||||
|
# run: npm run test:ci
|
||||||
|
# working-directory: frontend
|
||||||
|
-
|
||||||
|
name: 🏗️ Run build
|
||||||
|
run: npm run build
|
||||||
|
working-directory: frontend
|
||||||
10
.github/workflows/docker-image.yml
vendored
10
.github/workflows/docker-image.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: ☁️ Checkout source
|
name: ☁️ Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: 🔧 Set up QEMU
|
name: 🔧 Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# docker run --rm infisical/backend:test
|
# docker run --rm infisical/backend:test
|
||||||
-
|
-
|
||||||
name: 📦 Build backend and push
|
name: 🏗️ Build backend and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: ☁️ Checkout source
|
name: ☁️ Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: 🔧 Set up QEMU
|
name: 🔧 Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
@@ -79,10 +79,12 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# docker run --rm infisical/frontend:test
|
# docker run --rm infisical/frontend:test
|
||||||
-
|
-
|
||||||
name: 📦 Build frontend and push
|
name: 🏗️ Build frontend and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: frontend
|
context: frontend
|
||||||
tags: infisical/frontend:latest
|
tags: infisical/frontend:latest
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
build-args: |
|
||||||
|
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user