Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ssh agent and build to workflow #2

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 17 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
on: [pull_request]

name: Rust
name: Build and lint

jobs:
check:
name: Check
build:
name: Build protos
runs-on: ubuntu-latest
steps:
- name: Add SSH private keys for submodule repositories
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PROTOBUF_KEY }}

- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive
submodules: true

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -22,33 +27,21 @@ jobs:
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
command: build

test:
name: Test Suite
lints:
name: Use clippy to lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
- name: Add SSH private keys for submodule repositories
uses: webfactory/[email protected]
with:
command: test
ssh-private-key: ${{ secrets.SSH_PROTOBUF_KEY }}

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: true

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
Expand Down