ACR CI/CD release pipeline for examples #9
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: Build and test | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- "multi-channel-chat/**" | |
env: | |
working-directory: "./multi-channel-chat" | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
working-directory: | |
- multi-channel-chat/api-gateway | |
- multi-channel-chat/chatlog | |
- multi-channel-chat/http-channel | |
- multi-channel-chat/nats-channel | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add wasm32-unknown-unknown | |
run: rustup target add wasm32-unknown-unknown | |
- name: Check formatting | |
run: cargo fmt -- --check | |
shell: bash | |
working-directory: ${{ matrix.working-directory }} | |
- name: Build actor | |
run: cargo build | |
working-directory: ${{ matrix.working-directory }} | |
- name: Check lints with clippy | |
run: | | |
rustup component add clippy | |
cargo clippy | |
working-directory: ${{ matrix.working-directory }} | |
# Once you've written unit tests for your actor, you can uncomment | |
# the two lines below to automatically run tests | |
# - name: Test actor | |
# run: cargo test --target x86_64-unknown-linux-gnu -- --nocapture | |
# working-directory: ${{ matrix.working-directory }} |