Use defaults.run.shell instead of setting shell every time

This commit is contained in:
flip1995 2020-10-09 11:53:10 +02:00
parent 64a7d019f1
commit c4c9453ccf
No known key found for this signature in database
GPG Key ID: 2CEFCDB27ED0BE79

View File

@ -11,6 +11,10 @@ env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target' CARGO_TARGET_DIR: '${{ github.workspace }}/target'
NO_FMT_TEST: 1 NO_FMT_TEST: 1
defaults:
run:
shell: bash
jobs: jobs:
changelog: changelog:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -105,7 +109,6 @@ jobs:
run: bash setup-toolchain.sh run: bash setup-toolchain.sh
env: env:
HOST_TOOLCHAIN: ${{ matrix.host }} HOST_TOOLCHAIN: ${{ matrix.host }}
shell: bash
# Run # Run
- name: Set LD_LIBRARY_PATH (Linux) - name: Set LD_LIBRARY_PATH (Linux)
@ -124,39 +127,31 @@ jobs:
run: | run: |
SYSROOT=$(rustc --print sysroot) SYSROOT=$(rustc --print sysroot)
echo "$SYSROOT/bin" >> $GITHUB_PATH echo "$SYSROOT/bin" >> $GITHUB_PATH
shell: bash
- name: Build - name: Build
run: cargo build --features deny-warnings run: cargo build --features deny-warnings
shell: bash
- name: Test - name: Test
run: cargo test --features deny-warnings run: cargo test --features deny-warnings
shell: bash
- name: Test clippy_lints - name: Test clippy_lints
run: cargo test --features deny-warnings run: cargo test --features deny-warnings
shell: bash
working-directory: clippy_lints working-directory: clippy_lints
- name: Test rustc_tools_util - name: Test rustc_tools_util
run: cargo test --features deny-warnings run: cargo test --features deny-warnings
shell: bash
working-directory: rustc_tools_util working-directory: rustc_tools_util
- name: Test clippy_dev - name: Test clippy_dev
run: cargo test --features deny-warnings run: cargo test --features deny-warnings
shell: bash
working-directory: clippy_dev working-directory: clippy_dev
- name: Test cargo-clippy - name: Test cargo-clippy
run: ../target/debug/cargo-clippy run: ../target/debug/cargo-clippy
shell: bash
working-directory: clippy_workspace_tests working-directory: clippy_workspace_tests
- name: Test clippy-driver - name: Test clippy-driver
run: bash .github/driver.sh run: bash .github/driver.sh
shell: bash
env: env:
OS: ${{ runner.os }} OS: ${{ runner.os }}
@ -165,7 +160,7 @@ jobs:
run: | run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache cargo cache
shell: bash
integration_build: integration_build:
needs: changelog needs: changelog
runs-on: ubuntu-latest runs-on: ubuntu-latest