fix(go): regenerate protobuf stubs for 17 new rpcs (#337) #734
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| check: | |
| name: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: arduino/setup-protoc@v3 | |
| with: | |
| version: '28.x' | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: fmt | |
| run: cargo fmt --all --check | |
| - name: clippy | |
| run: cargo clippy --workspace --features protobuf,grpc -- -D warnings | |
| - name: check | |
| run: cargo check --workspace --features protobuf,grpc | |
| test: | |
| name: test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: arduino/setup-protoc@v3 | |
| with: | |
| version: '28.x' | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: build | |
| run: cargo build --workspace --features protobuf,grpc | |
| - name: unit tests | |
| run: cargo test --workspace --features protobuf,grpc --exclude ember-integration-tests | |
| - name: integration tests | |
| run: cargo test -p ember-integration-tests --test integration -- --test-threads=1 | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: build release | |
| run: cargo build --release | |
| - name: upload binary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ember-server | |
| path: target/release/ember-server | |
| helm: | |
| name: helm lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: azure/setup-helm@v4 | |
| - name: lint | |
| run: helm lint helm/ember | |
| - name: template | |
| run: helm template ember helm/ember | |
| docker: | |
| name: docker build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: build | |
| run: docker build -t ember:ci . | |
| go-client: | |
| name: go client | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| cache-dependency-path: clients/ember-go/go.sum | |
| - name: build | |
| working-directory: clients/ember-go | |
| run: go build ./... | |
| - name: test | |
| working-directory: clients/ember-go | |
| run: go test ./... | |
| security: | |
| name: security | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: install cargo-audit | |
| run: cargo install cargo-audit | |
| - name: audit | |
| run: cargo audit |