Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lighthouse 12 #82

Merged
merged 6 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .circleci/config.yml

This file was deleted.

36 changes: 18 additions & 18 deletions .github/workflows/foo-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ jobs:
lighthouse-foo-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm install
- run: npm run build
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js --verbose \
--apiToken ${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }} \
--emulatedFormFactor all \
--isGitHubAction true \
--tag lighthouse-check \
--urls ${{ secrets.LIGHTHOUSE_CHECK_URLS }} \
--prCommentAccessToken "${{ secrets.LIGHTHOUSE_CHECK_GITHUB_ACCESS_TOKEN }}" \
--prCommentEnabled \
--prCommentUrl "https://api.github.com/repos/foo-software/lighthouse-check/pulls/$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')/reviews"
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js --verbose \
--apiToken ${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }} \
--emulatedFormFactor all \
--isGitHubAction true \
--tag lighthouse-check \
--urls ${{ secrets.LIGHTHOUSE_CHECK_URLS }} \
--prCommentAccessToken "${{ secrets.GITHUB_TOKEN }}" \
--prCommentEnabled \
--prCommentUrl "https://api.github.com/repos/foo-software/lighthouse-check/pulls/$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')/reviews"
30 changes: 16 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm install
- run: npm run build
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js --verbose --prCommentEnabled \
--emulatedFormFactor "all" \
--urls "https://www.foo.software,https://www.automated-lighthouse-check.com/" \
--prCommentAccessToken "${{ secrets.LIGHTHOUSE_CHECK_GITHUB_ACCESS_TOKEN }}" \
--prCommentUrl "https://api.github.com/repos/foo-software/lighthouse-check/pulls/$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')/reviews"
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- name: Unit tests
run: npm run test
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js --verbose --prCommentEnabled \
--emulatedFormFactor "all" \
--urls "https://www.foo.software,https://www.foo.software/about" \
--prCommentAccessToken "${{ secrets.GITHUB_TOKEN }}" \
--prCommentUrl "https://api.github.com/repos/foo-software/lighthouse-check/pulls/$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')/reviews"
Loading
Loading