Skip to content

Commit

Permalink
Merge pull request #6 from dr8co/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dr8co authored May 18, 2024
2 parents 68ea09f + c18832d commit f9898cb
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- dev

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
13 changes: 9 additions & 4 deletions ConfigurePkgConfig.pas
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ procedure ReplacePlaceholderInPkgConfig;
end;
end;

// Run after the installation has completed
procedure DeinitializeSetup();
procedure CurStepChanged(CurStep: TSetupStep);
begin
AppPath := ExpandConstant('{app}');
ReplacePlaceholderInPkgConfig;
// Check if the installation is transitioning from ssPostInstall to ssDone
if (CurStep = ssDone) and (WizardForm.CurPageID = wpFinished) then
begin
// Save the installation path
AppPath := ExpandConstant('{app}');
// Perform actions after installation
ReplacePlaceholderInPkgConfig;
end;
end;
29 changes: 29 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh

#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-<linter>:latest

0 comments on commit f9898cb

Please sign in to comment.