Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a failure because it is running before checkout. #270

Merged
merged 2 commits into from
Sep 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ jobs:
outputs:
dirs: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
.: 'src/*'
./test_framework: test_framework/*
./youki_integration_test: youki_integration_test/*
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
.: 'src/*'
./test_framework: test_framework/*
./youki_integration_test: youki_integration_test/*
check:
needs: changes
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
dirs: ${{ fromJSON(needs.changes.outputs.dirs) }}
dirs: ${{ fromJSON(needs.changes.outputs.dirs) }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
Expand All @@ -47,7 +48,7 @@ jobs:
- name: Check formatting
run: cargo fmt --all -- --check
working-directory: ${{matrix.dirs}}
- name : Check clippy lints
- name: Check clippy lints
working-directory: ${{matrix.dirs}}
run: cargo clippy --all-targets --all-features -- -D warnings
tests:
Expand Down