No need to setup node? install packages instead #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests ecoindex action | |
on: | |
push: | |
branches: ["*"] | |
paths: | |
- ecoindex/** | |
- .github/workflows/ecoindex.yml | |
pull_request: | |
branches: ["*"] | |
paths: | |
- ecoindex/** | |
- .github/workflows/ecoindex.yml | |
jobs: | |
tests-ecoindex: | |
runs-on: ubuntu-latest | |
name: ecoindex action | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run ecoindex scanner | |
uses: ./ecoindex | |
with: | |
url: https://maisondelautisme.gouv.fr | |
output: results.json | |
- shell: bash | |
run: | | |
python -m json.tool < results.json | |
cat results.json |