mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
CI
This commit is contained in:
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -30,6 +30,9 @@ jobs:
|
|||||||
multiline: false
|
multiline: false
|
||||||
- name: build-linter-utests
|
- name: build-linter-utests
|
||||||
run: |
|
run: |
|
||||||
|
echo "########## LINTER ##########"
|
||||||
|
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
|
||||||
|
cargo clippy --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1)
|
||||||
export PATH=$GITHUB_WORKSPACE/bin:$PATH
|
export PATH=$GITHUB_WORKSPACE/bin:$PATH
|
||||||
export RUSTC_WRAPPER=$GITHUB_WORKSPACE/bin/sccache
|
export RUSTC_WRAPPER=$GITHUB_WORKSPACE/bin/sccache
|
||||||
export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache
|
export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache
|
||||||
@@ -40,9 +43,6 @@ jobs:
|
|||||||
echo "########## SHARED CACHE STATUS ##########"
|
echo "########## SHARED CACHE STATUS ##########"
|
||||||
sccache --version
|
sccache --version
|
||||||
sccache --show-stats
|
sccache --show-stats
|
||||||
echo "########## LINTER ##########"
|
|
||||||
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
|
|
||||||
cargo clippy --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1)
|
|
||||||
echo "########## START BUILD ##########"
|
echo "########## START BUILD ##########"
|
||||||
cargo build --all-features --tests
|
cargo build --all-features --tests
|
||||||
sccache --show-stats
|
sccache --show-stats
|
||||||
|
|||||||
Reference in New Issue
Block a user