-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-2582-certificat-monitor
- Loading branch information
Showing
793 changed files
with
36,400 additions
and
21,493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Destroy environment | ||
|
||
on: | ||
delete: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: devops/scripts | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18.20" | ||
|
||
- name: Get environment name | ||
id: env_name | ||
run: | | ||
env_name=$(node get-environment-name.js ${{ github.event.ref }}) | ||
echo "env_name: $env_name" | ||
echo "env_name=$env_name" >> $GITHUB_OUTPUT | ||
- name: Destroy environment | ||
env: | ||
SCW_SECRET_KEY: ${{ secrets.SCW_CI_DEPLOY_SECRET_KEY }} | ||
SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} | ||
run: node destroy-environment.js snu-custom ${{ steps.env_name.outputs.env_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Mirroring | |
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: [production_state] | ||
|
||
jobs: | ||
mirror: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: API - Run Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
branch_name: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'api/**' | ||
- 'packages/lib/**' | ||
- name: Git checkout | ||
if: steps.changes.outputs.src == 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch_name }} | ||
|
||
- name: Node 18.x | ||
if: steps.changes.outputs.src == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Start MongoDB 7.0 | ||
if: steps.changes.outputs.src == 'true' | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: "7.0" | ||
|
||
- uses: actions/cache@v4 | ||
id: cache-npm | ||
with: | ||
path: | | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
admin/node_modules | ||
packages/ds/node_modules | ||
packages/lib/node_modules | ||
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nodemodules- | ||
- name: Install packages | ||
if: ${{ (steps.changes.outputs.src == 'true') && (steps.cache-npm.outputs.cache-hit != 'true') }} | ||
run: npm ci | ||
|
||
- name: Build lib | ||
if: steps.changes.outputs.src == 'true' | ||
working-directory: packages/lib | ||
run: npm run build | ||
|
||
- name: Lint code | ||
if: steps.changes.outputs.src == 'true' | ||
working-directory: api | ||
run: npm run lint | ||
|
||
- name: Test and Send coverage | ||
if: steps.changes.outputs.src == 'true' | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
CI: true | ||
with: | ||
workingDirectory: api | ||
coverageCommand: npm run coverage |
Oops, something went wrong.