File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches :
6- - main
5+ # branches:
6+ # - main
77 pull_request :
88 types : [ opened, reopened, synchronize ]
99 branches :
4242 - uses : dtolnay/rust-toolchain@stable
4343 with :
4444 components : rustfmt
45+ - uses : Swatinem/rust-cache@v2
4546 - name : Enforce formatting
4647 run : cargo fmt -- --check --color always
4748
49+ publish-check :
50+ name : Publish check
51+ runs-on : ubuntu-latest
52+ steps :
53+ - uses : actions/checkout@v5
54+ - uses : dtolnay/rust-toolchain@stable
55+ - uses : Swatinem/rust-cache@v2
56+ - run : cargo fetch
57+ - name : cargo publish
58+ run : cargo publish --dry-run
59+
4860 test :
4961 name : Test
5062 runs-on : ubuntu-latest
6981 ci-success :
7082 name : CI success
7183 runs-on : ubuntu-latest
72- needs : [clippy, fmt, test]
84+ needs : [clippy, fmt, publish-check, test]
7385 steps :
7486 - run : echo "All CI jobs successfully finished."
You can’t perform that action at this time.
0 commit comments