-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Attempt to fix more potential template injection issues
- Loading branch information
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,10 +51,13 @@ jobs: | |
target/ | ||
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Run tests | ||
shell: bash | ||
run: > | ||
cargo test | ||
--workspace | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean | ||
run: git diff --exit-code | ||
|
||
|
@@ -110,10 +113,13 @@ jobs: | |
target/ | ||
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Run tests | ||
shell: bash | ||
run: > | ||
cargo test | ||
--workspace | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean | ||
run: git diff --exit-code | ||
|
||
|
@@ -161,12 +167,15 @@ jobs: | |
target/ | ||
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Run slow tests | ||
shell: bash | ||
run: > | ||
cargo test | ||
--workspace | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--features expensive-tests | ||
-- --ignored | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean | ||
run: git diff --exit-code | ||
|
||
|
@@ -216,12 +225,15 @@ jobs: | |
target/ | ||
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Run check | ||
shell: bash | ||
run: > | ||
cargo check | ||
--release | ||
--workspace | ||
--tests | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean | ||
run: git diff --exit-code | ||
|
||
|
@@ -255,12 +267,15 @@ jobs: | |
- name: Remove lockfile to build with latest dependencies | ||
run: rm Cargo.lock | ||
- name: Build crates | ||
shell: bash | ||
run: > | ||
cargo build | ||
--workspace | ||
--all-targets | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--verbose | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean (excluding lockfile) | ||
run: git diff --exit-code ':!Cargo.lock' | ||
|
||
|
@@ -369,10 +384,12 @@ jobs: | |
name: Clippy (MSRV) | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: > | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--all-targets | ||
-- | ||
-D warnings | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
|
||
clippy-beta: | ||
name: Clippy (beta) | ||
|
@@ -396,10 +413,12 @@ jobs: | |
name: Clippy (beta) | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: > | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--all-targets | ||
-- | ||
-W clippy::all | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
|
||
codecov: | ||
name: Code coverage | ||
|
@@ -427,10 +446,12 @@ jobs: | |
run: > | ||
cargo tarpaulin | ||
--engine llvm | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--release | ||
--timeout 600 | ||
--out xml | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
@@ -451,8 +472,10 @@ jobs: | |
run: > | ||
cargo doc | ||
--all | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
--document-private-items | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
|
||
fmt: | ||
name: Rustfmt | ||
|
@@ -484,7 +507,9 @@ jobs: | |
run: > | ||
cargo check | ||
--workspace | ||
${{ steps.prepare.outputs.feature-flags }} | ||
${FEATURE_FLAGS} | ||
env: | ||
FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} | ||
- name: Verify working directory is clean | ||
run: git diff --exit-code | ||
|
||
|