Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Feb 1, 2024
1 parent 480cf05 commit db387eb
Showing 1 changed file with 1 addition and 63 deletions.
64 changes: 1 addition & 63 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,6 @@ env:
RUST_VERSION: 1.75.0

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.build }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.build }}-cargo-
- name: Install Rust
run: |
rustup update $RUST_VERSION --no-self-update
rustup default $RUST_VERSION
rustup component add rustfmt
rustup component add clippy
- name: Check Format
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy --tests --benches -- -D clippy::all

- name: Test
run: cargo test -- --test-threads=1
env:
RUST_BACKTRACE: 1

shell-checks:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC1090 -e SC2119 -e SC1091

comment:
runs-on: ubuntu-latest
steps:
Expand All @@ -64,19 +15,6 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting!'
body: '👋 Thanks for reporting again!'
})
checks-pass:
# Always run this job!
if: always()
needs: [build, shell-checks]
runs-on: ubuntu-latest
steps:
- name: check build result
if: ${{ needs.build.result != 'success' }}
run: exit 1

- name: check shell-checks result
if: ${{ needs.shell-checks.result != 'success' }}
run: exit 1

0 comments on commit db387eb

Please sign in to comment.