Skip to content

Commit

Permalink
[DEVOPS-370] Update Next.js CI yarn scripts (#103)
Browse files Browse the repository at this point in the history
<details open>
<summary><a href="https://amuniversal.atlassian.net/browse/DEVOPS-370"
title="DEVOPS-370" target="_blank">DEVOPS-370</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
<td>Update Next.js CI workflows with updated scripts in TPS UI</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://amuniversal.atlassian.net/images/icons/issuetypes/story.png"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>To Do</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
do not remove this marker as it will break action-jira-linter's
functionality.
  added_by_jira_lint
-->
---

<!-- Please make sure you read the contribution guidelines and then fill
out the blanks below.

Please format the PR title appropriately based on the type of change:
  [JIRA-XXX]: <description>
-->

## Description

- Remove link checker and updated playwright install command

## Related Links

<!-- List any links related to this pull request here

Replace "JIRA-XXX" with the your Jira issue key -->

- Jira Issue: DEVOPS-370
  • Loading branch information
ebronson68 authored Jan 16, 2024
1 parent 9034c63 commit 74bb848
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
33 changes: 1 addition & 32 deletions .github/workflows/next-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
uses: Andrews-McMeel-Universal/cache-next-install@v1

- name: Install Playwright Browsers
run: yarn pretest:integration:ci
run: yarn playwright install

- name: Use .env cache action
uses: Andrews-McMeel-Universal/get-envs@v1
Expand All @@ -106,37 +106,6 @@ jobs:
path: playwright-report/
retention-days: 30

# Required status check
# Checks gzipped page sizes and application links
check-app:
name: Check Links and Size Limit
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use .env cache action
uses: Andrews-McMeel-Universal/get-envs@v1
with:
azurecredentials: ${{ secrets.AZURE_CREDENTIALS }}
environment: ${{ inputs.environment }}

- name: Use cache-next-install action
uses: Andrews-McMeel-Universal/cache-next-install@v1

- name: Use cache-next-build action
uses: Andrews-McMeel-Universal/cache-next-build@v1

- name: Run Broken Link Checker
id: link-checker-report
continue-on-error: true
run: yarn test:links

- name: Link Checker Results
if: ${{ failure() }}
run: echo "::warning::${{steps.link-checker-report.outputs.result}}"

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/ui-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,37 +105,6 @@ jobs:
path: playwright-report/
retention-days: 30

# Required status check
# Checks gzipped page sizes and application links
check-app:
name: Check Links and Size Limit
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use .env cache action
uses: Andrews-McMeel-Universal/get-envs@v1
with:
azurecredentials: ${{ secrets.AZURE_CREDENTIALS }}
environment: ${{ inputs.environment }}

- name: Use cache-yarn-install action
uses: Andrews-McMeel-Universal/cache-yarn-install@v1

- name: Use cache-next-build action
uses: Andrews-McMeel-Universal/cache-next-build@v1

- name: Run Broken Link Checker
id: link-checker-report
continue-on-error: true
run: yarn test:links

- name: Link Checker Results
if: ${{ failure() }}
run: echo "::warning::${{steps.link-checker-report.outputs.result}}"

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 74bb848

Please sign in to comment.