Skip to content

Merge pull request #17 from semiotic-ai/release-please--branches--mai… #7

Merge pull request #17 from semiotic-ai/release-please--branches--mai…

Merge pull request #17 from semiotic-ai/release-please--branches--mai… #7

Workflow file for this run

name: rust-test
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: 🔨 Build
uses: actions-rs/cargo@v1
with:
command: build
- name: 🔎 Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: 🔎 Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all