28 lines
474 B
YAML
28 lines
474 B
YAML
name: Run Cargo Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Docker container
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: rust:latest
|
|
options: -v ${{ github.workspace }}:/workspace
|
|
run: |
|
|
cd /workspace
|
|
cargo test --lib
|
|
|