Skip to content

chore(deps): bump @vegaprotocol/protos from 0.21.0 to 0.23.0 #2217

chore(deps): bump @vegaprotocol/protos from 0.21.0 to 0.23.0

chore(deps): bump @vegaprotocol/protos from 0.21.0 to 0.23.0 #2217

Workflow file for this run

name: Check Approbation
on:
pull_request:
jobs:
check-approbation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository 'main'
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Setup Node.js Latest
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version-file: '.nvmrc'
- name: Run Approbation on main
id: approbation-main
continue-on-error: true
run: |
echo "Starting Approbation"
npx --silent --yes github:vegaprotocol/approbation check-references \
--specs="specs/*.md" \
--tests="{frontend,test,web-extension}/**/*.spec.{ts,js,tsx,jsx}" \
--categories="specs/categories.json" \
--show-mystery --show-file-stats --category-stats --output-jenkins --output-csv
mv results/approbation-files.csv ../../old.csv
results=$(cat results/jenkins.txt)
echo "file-main=$results" >> "$GITHUB_OUTPUT"
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Run Approbation on PR
id: approbation
run: |
echo "Starting Approbation"
npx --silent --yes github:vegaprotocol/approbation check-references \
--specs="specs/*.md" \
--tests="{frontend,test,web-extension}/**/*.spec.{ts,js,tsx,jsx}" \
--categories="specs/categories.json" \
--show-mystery --category-stats --show-file-stats --output-jenkins --output-csv
mv results/approbation-files.csv ../../new.csv
results=$(cat results/jenkins.txt)
echo "file=$results" >> "$GITHUB_OUTPUT"
- name: Install dependencies
run: yarn install
- name: Compare coverage
id: compare
run: |
output=$(node ./.github/scripts/compare_approbation.js ../../old.csv ../../new.csv)
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "covDiff<<$EOF" >> $GITHUB_OUTPUT
echo "$output" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Here is your approbation coverage **BEFORE** this PR'
- name: Comment on Pull Request
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v3
with:
body: |
Here is your approbation coverage **BEFORE** this PR:
```
${{ steps.approbation-main.outputs.file-main }}
```
Here is your approbation coverage **AFTER** this PR:
```
${{ steps.approbation.outputs.file }}
```
-----------------------------------
${{steps.compare.outputs.covDiff}}
issue-number: ${{ github.event.pull_request.number }}
- name: Update comment on Pull Request
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
Here is your approbation coverage **BEFORE** this PR:
```
${{ steps.approbation-main.outputs.file-main }}
```
Here is your approbation coverage **AFTER** this PR:
```
${{ steps.approbation.outputs.file }}
```
-----------------------------------
${{steps.compare.outputs.covDiff}}
issue-number: ${{ github.event.pull_request.number }}
edit-mode: replace