This commit is contained in:
@@ -4,28 +4,24 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
defaults:
|
||||
run:
|
||||
working-directory: api-token-vault
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: api-token-vault
|
||||
path: .
|
||||
|
||||
- name: Setup Rust
|
||||
- name: Rust setup
|
||||
uses: actions/setup-rust@v4
|
||||
with:
|
||||
rust-version: stable
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
pwd
|
||||
echo "PWD: $(pwd)"
|
||||
ls -la
|
||||
cat Cargo.toml || echo "No Cargo.toml in root"
|
||||
if [ -f "Cargo.toml" ]; then
|
||||
cargo build --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Check formatting
|
||||
run: cargo fmt -- --check
|
||||
else
|
||||
echo "Skipping cargo build - no Cargo.toml"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user