Compare commits

..

8 Commits

11 changed files with 22 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ jobs:
environment: ${{ inputs.environment_name }} environment: ${{ inputs.environment_name }}
steps: steps:
- name: Checkout - name: Checkout
uses: https://gitea.com/actions/checkout@v6 uses: actions/checkout@v5
with: with:
sparse-checkout: | sparse-checkout: |
api api
@@ -45,8 +45,8 @@ jobs:
- name: Build Client - name: Build Client
env: env:
VITE_API_URL: ${{ vars.VITE_API_URL }} VITE_API_URL: ${{ vars.VITE_API_URL }}
VITE_BASE_URL: ${{ case(inputs.environment_name === 'test', vars.VITE_BASE_URL_TEST, vars.VITE_BASE_URL_PROD) }} VITE_BASE_URL: ${{ vars.VITE_BASE_URL }}
VITE_CLIENT_ID: ${{ case(inputs.environment_name === 'test', vars.VITE_CLIENT_ID_TEST, vars.VITE_CLIENT_ID_PROD) }} VITE_CLIENT_ID: ${{ vars.VITE_CLIENT_ID }}
VITE_ISSUER_URI: ${{ vars.VITE_ISSUER_URI }} VITE_ISSUER_URI: ${{ vars.VITE_ISSUER_URI }}
VITE_TENANT_ID: ${{ vars.VITE_TENANT_ID }} VITE_TENANT_ID: ${{ vars.VITE_TENANT_ID }}
run: | run: |

View File

@@ -7,9 +7,6 @@ on:
client: client:
value: ${{ jobs.changes.outputs.client }} value: ${{ jobs.changes.outputs.client }}
permissions:
contents: read
jobs: jobs:
changes: changes:
name: filter name: filter
@@ -18,13 +15,7 @@ jobs:
api: ${{ steps.filter.outputs.api }} api: ${{ steps.filter.outputs.api }}
client: ${{ steps.filter.outputs.client }} client: ${{ steps.filter.outputs.client }}
steps: steps:
- name: 'Setup Node' - uses: actions/checkout@v3
uses: actions/setup-node@v6
with:
node-version: '22.x'
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3 - uses: dorny/paths-filter@v3
id: filter id: filter

View File

@@ -21,9 +21,11 @@ jobs:
environment: ${{ inputs.environment_name }} environment: ${{ inputs.environment_name }}
steps: steps:
- name: Log in to Azure - name: Log in to Azure
uses: azure/login@v3 uses: azure/login@v2
with: with:
creds: '{"clientId":"${{ vars.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ vars.AZURE_TENANT_ID }}"}' client-id: ${{ vars.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
- name: Azure CLI script - name: Azure CLI script
uses: azure/cli@v2 uses: azure/cli@v2

View File

@@ -6,14 +6,14 @@ on:
jobs: jobs:
changes: changes:
uses: ./.gitea/workflows/changes.yaml uses: ./.github/workflows/changes.yaml
build: build:
if: ${{ needs.changes.outputs.api == 'true' || needs.changes.outputs.client == 'true' }} if: ${{ needs.changes.outputs.api == 'true' || needs.changes.outputs.client == 'true' }}
name: build name: build
needs: needs:
- changes - changes
uses: ./.gitea/workflows/build_and_test.yaml uses: ./.github/workflows/build_and_test.yaml
with: with:
environment_name: test environment_name: test
version_number: ${{ github.run_id }} version_number: ${{ github.run_id }}
@@ -24,7 +24,7 @@ jobs:
needs: needs:
- changes - changes
- build - build
uses: ./.gitea/workflows/deploy.yaml uses: ./.github/workflows/deploy.yaml
with: with:
app_name: flying app_name: flying
environment_name: test environment_name: test

View File

@@ -5,14 +5,14 @@ on:
jobs: jobs:
changes: changes:
uses: ./.gitea/workflows/changes.yaml uses: ./.github/workflows/changes.yaml
build: build:
if: ${{ needs.changes.outputs.api == 'true' || needs.changes.outputs.client == 'true'}} if: ${{ needs.changes.outputs.app == 'true' || needs.changes.outputs.client == 'true'}}
name: build-and-test name: build
needs: needs:
- changes - changes
uses: ./.gitea/workflows/build_and_test.yaml uses: ./.github/workflows/build_and_test.yaml
with: with:
environment_name: pull_request environment_name: pull_request
version_number: ${{ github.run_id }} version_number: ${{ github.run_id }}

View File

@@ -7,7 +7,7 @@ on:
jobs: jobs:
build: build:
name: build name: build
uses: ./.gitea/workflows/build_and_test.yaml uses: ./.github/workflows/build_and_test.yaml
with: with:
environment_name: prod environment_name: prod
version_number: ${{ github.ref_name }} version_number: ${{ github.ref_name }}
@@ -17,7 +17,7 @@ jobs:
name: deploy name: deploy
needs: needs:
- build - build
uses: ./.gitea/workflows/deploy.yaml uses: ./.github/workflows/deploy.yaml
with: with:
app_name: flying app_name: flying
environment_name: prod environment_name: prod

View File

@@ -1,6 +1,6 @@
{ {
"name": "api", "name": "api",
"version": "2.1.4", "version": "2.1.3",
"description": "", "description": "",
"author": "", "author": "",
"private": true, "private": true,

View File

@@ -40,7 +40,7 @@ export class LogInterceptor implements NestInterceptor {
if (jwtPayload[rolesKeyName].includes('Flying.Read')) { if (jwtPayload[rolesKeyName].includes('Flying.Read')) {
if (data.entities) { if (data.entities) {
const logs = data.entities.map((entity) => limitData(entity)); const logs = data.entities.map((entity) => limitData(data.entities));
return { return {
entities: logs, entities: logs,

View File

@@ -1,7 +1,7 @@
{ {
"name": "client", "name": "client",
"private": true, "private": true,
"version": "2.1.4", "version": "2.1.3",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -2,4 +2,3 @@
.terraform/* .terraform/*
*.tfstate *.tfstate
*.tfstate.* *.tfstate.*
.DS_Store

View File

@@ -1,6 +1,6 @@
{ {
"name": "@noahspan/flying", "name": "@noahspan/flying",
"version": "2.1.4", "version": "2.1.3",
"scripts": { "scripts": {
"start": "node api/dist/main", "start": "node api/dist/main",
"format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"", "format": "prettier --write \"**/src/**/*.ts\" \"**/test/**/*.ts\"",