diff --git a/.gitea/workflows/smart-clinic-compile-backend.yml b/.gitea/workflows/smart-clinic-compile-backend.yml index e374f7c..6a34dbe 100644 --- a/.gitea/workflows/smart-clinic-compile-backend.yml +++ b/.gitea/workflows/smart-clinic-compile-backend.yml @@ -11,12 +11,16 @@ jobs: runs-on: node20 name: Compile Backend Code steps: - - uses: actions/checkout@v3 - - name: Set up JDK + - name: Checkout repository + uses: actions/checkout@v4 + with: + ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }} + - name: Configure Java project uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'gradle' - name: Compile with Gradle run: | cd SmartClinicManagementSystem/app diff --git a/.gitea/workflows/smart-clinic-lint-backend.yml b/.gitea/workflows/smart-clinic-lint-backend.yml index dc0bc04..3ddcbe1 100644 --- a/.gitea/workflows/smart-clinic-lint-backend.yml +++ b/.gitea/workflows/smart-clinic-lint-backend.yml @@ -11,12 +11,16 @@ jobs: runs-on: node20 name: Checkstyle Java Linting steps: - - uses: actions/checkout@v3 - - name: Set up JDK + - name: Checkout repository + uses: actions/checkout@v4 + with: + ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }} + - name: Configure Java project uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' + cache: 'gradle' - 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 - name: Run Checkstyle diff --git a/.gitea/workflows/smart-clinic-lint-docker.yml b/.gitea/workflows/smart-clinic-lint-docker.yml index 76b1505..27de3d5 100644 --- a/.gitea/workflows/smart-clinic-lint-docker.yml +++ b/.gitea/workflows/smart-clinic-lint-docker.yml @@ -11,7 +11,10 @@ jobs: runs-on: node20 name: Lint Dockerfiles steps: - - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 + with: + ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }} - name: Run hadolint uses: hadolint/hadolint-action@v3.1.0 with: diff --git a/.gitea/workflows/smart-clinic-lint-frontend.yml b/.gitea/workflows/smart-clinic-lint-frontend.yml index 5519b16..34a7642 100644 --- a/.gitea/workflows/smart-clinic-lint-frontend.yml +++ b/.gitea/workflows/smart-clinic-lint-frontend.yml @@ -11,11 +11,10 @@ jobs: runs-on: node20 name: Lint HTML, CSS, and JS steps: - - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v4 + - name: Checkout repository + uses: actions/checkout@v4 with: - node-version: '18' + ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }} - name: Install linters run: | npm install -g htmlhint stylelint eslint