Checkout with correct SSH key

This commit is contained in:
2025-11-10 16:16:02 +01:00
parent 139fd4ece6
commit d38034d156
4 changed files with 19 additions and 9 deletions

View File

@@ -11,12 +11,16 @@ jobs:
runs-on: node20 runs-on: node20
name: Compile Backend Code name: Compile Backend Code
steps: steps:
- uses: actions/checkout@v3 - name: Checkout repository
- name: Set up JDK uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }}
- name: Configure Java project
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: '21' java-version: '21'
cache: 'gradle'
- name: Compile with Gradle - name: Compile with Gradle
run: | run: |
cd SmartClinicManagementSystem/app cd SmartClinicManagementSystem/app

View File

@@ -11,12 +11,16 @@ jobs:
runs-on: node20 runs-on: node20
name: Checkstyle Java Linting name: Checkstyle Java Linting
steps: steps:
- uses: actions/checkout@v3 - name: Checkout repository
- name: Set up JDK uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }}
- name: Configure Java project
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: '21' java-version: '21'
cache: 'gradle'
- name: Download Checkstyle - name: Download Checkstyle
run: curl -L -o checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar run: curl -L -o checkstyle.jar https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.12.1/checkstyle-10.12.1-all.jar
- name: Run Checkstyle - name: Run Checkstyle

View File

@@ -11,7 +11,10 @@ jobs:
runs-on: node20 runs-on: node20
name: Lint Dockerfiles name: Lint Dockerfiles
steps: steps:
- uses: actions/checkout@v3 - name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }}
- name: Run hadolint - name: Run hadolint
uses: hadolint/hadolint-action@v3.1.0 uses: hadolint/hadolint-action@v3.1.0
with: with:

View File

@@ -11,11 +11,10 @@ jobs:
runs-on: node20 runs-on: node20
name: Lint HTML, CSS, and JS name: Lint HTML, CSS, and JS
steps: steps:
- uses: actions/checkout@v3 - name: Checkout repository
- name: Set up Node.js uses: actions/checkout@v4
uses: actions/setup-node@v4
with: with:
node-version: '18' ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }}
- name: Install linters - name: Install linters
run: | run: |
npm install -g htmlhint stylelint eslint npm install -g htmlhint stylelint eslint