Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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

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

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

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