Skip to content

Commit

Permalink
mvp-a11y-gh-actions (#12): 07-lighthouse.yml : 'needs: deploy-github-…
Browse files Browse the repository at this point in the history
…pages'
  • Loading branch information
fititnt committed May 21, 2021
1 parent 900cbab commit f7ba10d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/05-deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- main

jobs:
build:
deploy-github-pages:
name: Build
runs-on: ubuntu-latest
steps:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/07-lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,74 @@
# Veja https://github.com/HXL-CPLP/Auxilium-Humanitarium-API/issues/12

# @TODO: https://www.adrianbolonio.com/en/accessibility-github-actions/
# @TODO: https://github.com/pa11y/pa11y

name: Audit live site (lighthouse)
on: push

jobs:
audit:
needs: deploy-github-pages
runs-on: ubuntu-latest
steps:

- name: Audit live URL, https://hapi.etica.ai/
uses: jakejarvis/lighthouse-action@master
with:
url: 'https://hapi.etica.ai/'

- name: Audit live URL, https://hapi.etica.ai/por/
uses: jakejarvis/lighthouse-action@master
with:
url: 'https://hapi.etica.ai/por/'

# - name: Audit live URL, https://hapi.etica.ai/por-Latn/
# uses: jakejarvis/lighthouse-action@master
# with:
# url: 'https://hapi.etica.ai/por-Latn/'

- name: Audit live URL, https://hapi.etica.ai/api/UN/HDX/eng/
uses: jakejarvis/lighthouse-action@master
with:
url: 'https://hapi.etica.ai/api/UN/HDX/eng/'

- name: Audit live URL, https://hapi.etica.ai/eng-Latn/api/UN/reliefweb/
uses: jakejarvis/lighthouse-action@master
with:
url: 'https://hapi.etica.ai/eng-Latn/api/UN/reliefweb/'

- name: Upload results as an artifact
uses: actions/upload-artifact@master
with:
name: report
path: './report'


# ____________________________________________________________________________ #
#### _[por] Como executar localmente o lighthouse [por]_
## @see https://developers.google.com/web/tools/lighthouse/
# npm install -g lighthouse
#

# lighthouse https://hapi.etica.ai/
# lighthouse https://hapi.etica.ai/por/
# # lighthouse https://hapi.etica.ai/por-Latn/
# lighthouse https://hapi.etica.ai/eng-Latn/api/UN/reliefweb/
#
# lighthouse http://127.0.0.1:4000/ --output-path=./_systema/lighthouse-reports/home.html
# lighthouse http://127.0.0.1:4000/por/ --output-path=./_systema/lighthouse-reports/por.html
# # lighthouse http://127.0.0.1:4000/por-Latn/ --output-path=./_systema/lighthouse-reports/por-Latn.html
# lighthouse http://127.0.0.1:4000/eng-Latn/api/UN/reliefweb/ --output-path=./_systema/lighthouse-reports/eng-Latn__api__UN__reliefweb.html

#### _[por] Como executar localmente o pa11y [por]_
## @see https://github.com/pa11y/pa11y
# npm install -g pa11y
#

# pa11y https://hapi.etica.ai/
# pa11y https://hapi.etica.ai/por/
# pa11y https://hapi.etica.ai/eng-Latn/api/UN/reliefweb/

# pa11y http://127.0.0.1:4000/
# pa11y http://127.0.0.1:4000/por/
# pa11y http://127.0.0.1:4000/eng-Latn/api/UN/reliefweb/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gemfile.lock

### Specific from Hapi
_systema/node_modules/
_systema/lighthouse-reports/
_systema/package-lock.json
openapitools.json
.gqlconfig
Expand Down

0 comments on commit f7ba10d

Please sign in to comment.