Bump T1 dependencies #233
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: Code format check | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- labeled | |
# Cancel the current workflow when new commit pushed | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
check-format: | |
if: '! github.event.pull_request.draft' | |
name: "Check code format" | |
runs-on: [self-hosted, linux, nixos] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: "Check Scala code format" | |
run: nix run ".#t1.elaborator.format" check | |
- name: "Check difftest code format" | |
run: | | |
nix shell '.#cargo' '.#rustfmt' -c bash -c 'cd difftest && cargo fmt --check' | |