Skip to content

Commit

Permalink
feat: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhenson committed May 3, 2024
1 parent 7ab5de4 commit c315aba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
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.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"
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '18.x'
- run: npm install
- run: npm run build
- name: Unit tests
Expand Down

0 comments on commit c315aba

Please sign in to comment.