2753 error panel needs extending to accept two errors for one input #2463
This file contains 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: Lighthouse CI accessibility checks | |
on: [pull_request] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
lhci: | |
name: Lighthouse CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Read .nvmrc file | |
id: read-nvmrc-file | |
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.read-nvmrc-file.outputs.nvmrc }}" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build pages | |
run: yarn build | |
- name: Run Lighthouse CI | |
run: ./lighthouse/lighthouse.sh | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
- name: Create Slack notification | |
if: always() | |
uses: edge/simple-slack-notify@master | |
with: | |
channel: '#pat-lib-notifications' | |
status: ${{ job.status }} | |
success_text: 'Lighthouse tests completed successfully' | |
failure_text: 'Lighthouse tests failed' | |
cancelled_text: 'Lighthouse tests was cancelled' | |
fields: | | |
[{ "title": "Action", "value": "${env.GITHUB_WORKFLOW} - build (${env.GITHUB_RUN_NUMBER})", "short": true }, | |
{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true }, | |
{ "title": "By", "value": "${{ github.actor }}", "short": true }, | |
{ "title": "Branch", "value": "${{ github.head_ref }}", "short": true }, | |
{ "title": "View job", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}] |