File tree Expand file tree Collapse file tree 3 files changed +38
-2
lines changed
Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : Add rustfmt and clippy
18+ run : rustup component add rustfmt clippy
19+ - name : Run cargo fmt
20+ run : cargo fmt --check
21+ - name : Run clippy
22+ run : cargo clippy -- -D warnings
23+ - name : Run clippy (tests)
24+ run : cargo clippy --tests
25+
26+ test :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v3
30+ - name : Run tests
31+ run : cargo test
32+
33+ build :
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/checkout@v3
37+ - name : Build
38+ run : cargo build --release
Original file line number Diff line number Diff line change 11[workspace ]
2-
32members = [
43 " example" ,
54 " shopify_function" ,
Original file line number Diff line number Diff line change 1- use serde:: Serialize ;
21use shopify_function:: prelude:: * ;
32use shopify_function:: Result ;
43
You can’t perform that action at this time.
0 commit comments