Skip to content

Commit

Permalink
set working directory in every step separately
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopedraza committed Jan 22, 2025
1 parent d574ba8 commit d26aba4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/core_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

defaults:
run:
working-directory: ./core

jobs:
test:
name: test
Expand Down Expand Up @@ -75,12 +71,13 @@ jobs:
- name: Run tests
uses: clechasseur/rs-cargo@v3
with:
working-directory: ./core
command: test
args: "--target ${{ matrix.target }}"
tool: ${{ matrix.cargo-tool }}

fmt:
name: fmt
format:
name: format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -91,8 +88,10 @@ jobs:
with:
toolchain: stable
components: rustfmt

- run: make fmt

- name: Check formatting
working-directory: ./core
run: make fmt

lint:
name: lint
Expand All @@ -108,6 +107,7 @@ jobs:
components: clippy

- name: Run linter
working-directory: ./core
run: make lint

build:
Expand All @@ -124,4 +124,5 @@ jobs:
components: clippy

- name: Build
working-directory: ./core
run: make build

0 comments on commit d26aba4

Please sign in to comment.