-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9979 from linode/release-v1.108.0
Release v1.108.0 - release -> `staging`
- Loading branch information
Showing
752 changed files
with
15,836 additions
and
10,936 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Code Coverage | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
base_branch: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.base_ref }} # The base branch of the PR (develop) | ||
|
||
- name: Use Node.js v18.14.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.14" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Run build | ||
run: yarn build | ||
|
||
- name: Run Base Branch Coverage | ||
run: yarn coverage:summary | ||
|
||
- name: Write Base Coverage to an Artifact | ||
run: | | ||
coverage_json=$(cat ./packages/manager/coverage/coverage-summary.json) | ||
pct=$(echo "$coverage_json" | jq -r '.total.statements.pct') | ||
echo "$pct" > ref_code_coverage.txt | ||
- name: Upload Base Coverage Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ref_code_coverage | ||
path: ref_code_coverage.txt | ||
|
||
current_branch: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
needs: base_branch | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js v18.14.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.14" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Run Build | ||
run: yarn build | ||
|
||
- name: Run Current Branch Coverage | ||
run: yarn coverage:summary | ||
|
||
- name: Write PR Number to an Artifact | ||
run: | | ||
echo "${{ github.event.number }}" > pr_number.txt | ||
- name: Write Current Coverage to an Artifact | ||
run: | | ||
coverage_json=$(cat ./packages/manager/coverage/coverage-summary.json) | ||
pct=$(echo "$coverage_json" | jq -r '.total.statements.pct') | ||
echo "$pct" > current_code_coverage.txt | ||
- name: Upload PR Number Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pr_number | ||
path: pr_number.txt | ||
|
||
- name: Upload Current Coverage Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: current_code_coverage | ||
path: current_code_coverage.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Coverage Badge | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate-coverage-badge: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js v18.14.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.14" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Run Build | ||
run: yarn build | ||
|
||
- name: Run Base Branch Coverage | ||
run: yarn coverage:summary | ||
|
||
- name: Generate Coverage Badge | ||
uses: jaywcjlove/coverage-badges-cli@7f0781807ef3e7aba97a145beca881d36451b7b7 # v1.1.1 | ||
with: | ||
label: '@linode/manager coverage' | ||
source: ./packages/manager/coverage/coverage-summary.json | ||
output: ./packages/manager/coverage/badges.svg | ||
|
||
- uses: jakejarvis/s3-sync-action@7ed8b112447abb09f1da74f3466e4194fc7a6311 # v0.5.1 | ||
with: | ||
args: --acl public-read --follow-symlinks --delete | ||
env: | ||
AWS_S3_ENDPOINT: https://us-east-1.linodeobjects.com | ||
AWS_S3_BUCKET: ${{ secrets.COVERAGE_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.COVERAGE_BUCKET_ACCESS }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.COVERAGE_BUCKET_SECRET }} | ||
AWS_REGION: us-east-1 | ||
SOURCE_DIR: ./packages/manager/coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Coverage Comment | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Code Coverage"] | ||
types: | ||
- completed | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js v18.14.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.14" | ||
|
||
- name: Download PR Number Artifact | ||
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e #v2.28.0 | ||
with: | ||
workflow: "coverage.yml" | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: pr_number | ||
|
||
- name: Download Base Coverage Artifact | ||
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e #v2.28.0 | ||
with: | ||
workflow: "coverage.yml" | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: ref_code_coverage | ||
|
||
- name: Download Current Coverage Artifact | ||
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e #v2.28.0 | ||
with: | ||
workflow: "coverage.yml" | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: current_code_coverage | ||
|
||
- name: Set PR Number Environment Variables | ||
run: | | ||
echo "PR_NUMBER=$(cat pr_number.txt)" >> $GITHUB_ENV | ||
- name: Generate Coverage Comment | ||
run: | | ||
base_coverage=$(cat ref_code_coverage.txt) | ||
current_coverage=$(cat current_code_coverage.txt) | ||
if (( $(echo "$current_coverage < $base_coverage" | bc -l) )); then | ||
icon="❌" # Error icon | ||
else | ||
icon="✅" # Check mark icon | ||
fi | ||
comment_message="**Coverage Report:** $icon<br>Base Coverage: $base_coverage%<br>Current Coverage: $current_coverage%" | ||
echo "Coverage: $comment_message" | ||
echo "$comment_message" > updated_comment.txt | ||
- name: Post Comment | ||
uses: mshick/add-pr-comment@7c0890544fb33b0bdd2e59467fbacb62e028a096 #v2.8.1 | ||
with: | ||
issue: ${{ env.PR_NUMBER }} | ||
message-path: updated_comment.txt |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Default code owners | ||
* @linode/frontend | ||
|
||
# Frontend SDET code owners for Cypress tests | ||
/packages/manager/cypress/ @linode/frontend-sdet |
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
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
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
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
Oops, something went wrong.