From c315aba1fb4cef10c7cfeb6ff0100a9661b2d3d0 Mon Sep 17 00:00:00 2001 From: adamhenson Date: Fri, 3 May 2024 10:50:26 -0400 Subject: [PATCH] feat: update CI --- .github/workflows/foo-api.yml | 36 +++++++++++++++++------------------ .github/workflows/test.yml | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/foo-api.yml b/.github/workflows/foo-api.yml index 6461116..6e37a97 100644 --- a/.github/workflows/foo-api.yml +++ b/.github/workflows/foo-api.yml @@ -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" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 652eb4f..b12f0bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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