File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ jobs:
20
20
timeout-minutes : 10
21
21
strategy :
22
22
matrix :
23
- os : [ ubuntu-latest, macos-latest ]
24
23
include :
25
24
- os : windows-latest
26
- windows : true
25
+ script : " .\\ tests\\ sign-and-verify-win.bat"
26
+ - os : ubuntu-latest
27
+ script : ./tests/sign-and-verify.sh
28
+ - os : macos-latest
29
+ script : ./tests/sign-and-verify.sh
27
30
runs-on : ${{ matrix.os }}
28
31
steps :
29
32
- uses : actions/checkout@v4
34
37
- name : Check if the example compiles
35
38
run : cargo check --example key-storage
36
39
- name : Run integration tests
37
- run : ./tests/sign-and-verify.sh
38
- if : ${{ ! matrix.windows }}
39
- - name : Run integration tests
40
- run : " .\\ tests\\ sign-and-verify-win.bat"
41
- if : ${{ matrix.windows }}
40
+ run : ${{ matrix.script }}
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ set dotenv-load := true
5
5
6
6
# Since this is a first recipe it's being run by default.
7
7
# Faster checks need to be executed first for better UX. For example
8
-
9
8
# codespell is very fast. cargo fmt does not need to download crates etc.
9
+
10
+ # Perform all checks
10
11
check : spelling formatting docs lints dependencies tests
11
12
12
13
# Checks common spelling mistakes
@@ -71,13 +72,17 @@ check-commits REFS='main..':
71
72
# Fixes common issues. Files need to be git add'ed
72
73
fix :
73
74
#!/usr/bin/env bash
75
+ set -euo pipefail
74
76
if ! git diff-files --quiet ; then
75
77
echo " Working tree has changes. Please stage them: git add ."
76
78
exit 1
77
79
fi
78
80
79
81
codespell --write-changes
80
82
just --unstable --fmt
83
+ # try to fix rustc issues
84
+ cargo fix --allow-staged
85
+ # try to fix clippy issues
81
86
cargo clippy --fix --allow-staged
82
87
83
88
# fmt must be last as clippy's changes may break formatting
You can’t perform that action at this time.
0 commit comments