Skip to content

Commit d1af155

Browse files
authored
Update contract-check.yml
1 parent 177fd26 commit d1af155

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/contract-check.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
tool-versions: contract_/.tool-versions
2424
- name: Check Scarb Formatting
2525
run: scarb fmt --check
26+
working-directory: contract_
27+
2628
build-and-test:
2729
runs-on: ubuntu-latest
28-
2930
steps:
30-
- uses: actions/checkout@v3
31-
31+
- uses: actions/checkout@v4
3232
- name: Set up Rust
3333
uses: actions-rs/toolchain@v1
3434
with:
@@ -58,15 +58,14 @@ jobs:
5858
~/.local/bin/snforge --version || echo "snforge binary not executable"
5959
6060
- name: Check formatting
61-
run: |
62-
cd contract_
63-
scarb fmt --check
61+
run: scarb fmt --check
62+
working-directory: contract_
6463

6564
- name: Run tests
6665
run: |
6766
export PATH=$PATH:/root/.local/bin
68-
cd contract_
6967
snforge test
68+
working-directory: contract_
7069

7170
- name: Cache dependencies
7271
uses: actions/cache@v3

0 commit comments

Comments
 (0)