diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1c1680d..06e82b4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,7 +6,27 @@ on: - main # Déclenche l'action pour la branche principale jobs: - ssh-connect: + + site-check: + runs-on: ubuntu-latest + # Linting du code HTML, CSS et JavaScript + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install + + - name: Lint HTML + run: npx htmlhint . + + - name: Lint CSS + run: npx stylelint "**/*.css" + + - name: Lint JavaScript + run: npx eslint . + + deployment: runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job steps: # Étape 1: Setup SSH @@ -44,4 +64,4 @@ jobs: run: | # Supprimer la clé privée pour des raisons de sécurité (optionnel) rm -f ~/.ssh/id_rsa - rm -f ~/.ssh/known_hosts + rm -f ~/.ssh/known_hosts \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 97e9de5..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,9 +0,0 @@ -stages: - - deploy - -deploy_timelapse: - stage: deploy - script: - - ssh kerboul@172.17.0.1 "cd /home/kerboul/scripts/timelapse && ./update_timelapse.sh -o" - only: - - main