chore(deps): bump actions/cache from 2 to 4 #481
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
cargo_build_and_test: | |
name: Cargo Build & Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- run: npm ci | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
# Add WASM target | |
- run: rustup target add wasm32-wasi | |
# Build non-WASM targets | |
- run: cargo build --verbose --all-targets --workspace --exclude fastly-edge-assignments | |
# Build WASM target separately | |
- run: cargo build --verbose -p fastly-edge-assignments --target wasm32-wasi | |
# Run tests (excluding WASM package) | |
- run: cargo test --verbose --workspace --exclude fastly-edge-assignments | |
- run: cargo doc --verbose |