mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
macOS clippy (#526)
* Specifically use bash as a shell to try and get rustup to work on Windows * Use bash for the call to echo * Add macOS clippy * Debug why git diff failed * Restore macos-latest to matrix * Allow whitespace before the fact 0 lines were modified * Add LC_ALL env variable to grep * Replace usage of -P with -e
This commit is contained in:
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
||||
clippy:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
@@ -37,7 +37,8 @@ jobs:
|
||||
# The above clippy run will cause it to be updated, so checking there's
|
||||
# no differences present now performs the desired check
|
||||
- name: Verify lockfile
|
||||
run: git diff | wc -l | grep -x "0"
|
||||
shell: bash
|
||||
run: git diff | wc -l | LC_ALL="en_US.utf8" grep -x -e "^[ ]*0"
|
||||
|
||||
deny:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user