chore: update deploy.yml
This commit is contained in:
@@ -9,25 +9,34 @@ jobs:
|
|||||||
|
|
||||||
site-check:
|
site-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Linting du code HTML, CSS et JavaScript
|
# Linting du code HTML, CSS et JavaScript sur un site non Node.js
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y w3m
|
||||||
|
sudo apt-get install -y csslint
|
||||||
|
sudo apt-get install -y jshint
|
||||||
|
|
||||||
- name: Lint HTML
|
- name: Check HTML
|
||||||
run: npx htmlhint .
|
run: |
|
||||||
|
w3m -dump -T text/html index.html > /dev/null
|
||||||
|
|
||||||
- name: Lint CSS
|
- name: Check CSS
|
||||||
run: npx stylelint "**/*.css"
|
run: |
|
||||||
|
csslint styles.css
|
||||||
|
|
||||||
- name: Lint JavaScript
|
- name: Check JavaScript
|
||||||
run: npx eslint .
|
run: |
|
||||||
|
jshint scripts.js
|
||||||
|
|
||||||
deployment:
|
deployment:
|
||||||
runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job
|
runs-on: ubuntu-latest # Utilisation de l'image Ubuntu pour l'environnement de job
|
||||||
|
# Dépend de la réussite de l'action site-check
|
||||||
|
needs: site-check
|
||||||
steps:
|
steps:
|
||||||
# Étape 1: Setup SSH
|
# Étape 1: Setup SSH
|
||||||
- name: Setup SSH and Add Private Key
|
- name: Setup SSH and Add Private Key
|
||||||
|
|||||||
Reference in New Issue
Block a user