Skip to content

Merge pull request #264 from google/263-add-new-port-forwarding-mode-… #606

Merge pull request #264 from google/263-add-new-port-forwarding-mode-…

Merge pull request #264 from google/263-add-new-port-forwarding-mode-… #606

Workflow file for this run

name: Compile, format and test rust binaries
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rustup
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Format
run: source "$HOME/.cargo/env" && cargo fmt --check
- name: Clippy
run: source "$HOME/.cargo/env" && cargo clippy -- -D warnings
- name: Build
run: source "$HOME/.cargo/env" && cargo build --verbose
- name: Run tests
run: source "$HOME/.cargo/env" && cargo test --verbose