Skip to content

Commit 80776e3

Browse files
authored
Merge pull request #43 from Shopify/ap.ci
Add CI workflow
2 parents ba51d3d + edc3c46 commit 80776e3

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[workspace]
2-
32
members = [
43
"example",
54
"shopify_function",

shopify_function/tests/shopify_function.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use serde::Serialize;
21
use shopify_function::prelude::*;
32
use shopify_function::Result;
43

0 commit comments

Comments
 (0)