dev: reorganize codebase for edition bump #1527
Workflow file for this run
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
name: Compare Snapshot | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
pull-requests: write | |
jobs: | |
compare-snapshot: | |
permissions: write-all | |
# trunk-ignore(actionlint/runner-label) | |
runs-on: ubuntu-latest-16-cores | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Set up Scarb | |
uses: software-mansion/setup-scarb@v1 | |
- name: Run compare_snapshot script | |
id: run-script | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
continue-on-error: true | |
run: | | |
result=$(python scripts/compare_snapshot.py 2>&1) | |
status=$(echo "$result" | tail -n 1 | awk -F ':' '{print $1}') | |
echo "$result" >> "$GITHUB_STEP_SUMMARY" | |
echo "status=$status" >> "$GITHUB_OUTPUT" | |
- name: Exit step based on status | |
if: steps.run-script.outputs.status == 'ERROR' | |
run: exit 1 |