19 lines
518 B
YAML
19 lines
518 B
YAML
|
on: [push]
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Check out repository
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
apt update
|
||
|
apt install --yes curl wget
|
||
|
- name: Install Rust nightly toolchain
|
||
|
run: |
|
||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile default -y
|
||
|
source $HOME/.cargo/env
|
||
|
- name: Run tests
|
||
|
run: cargo test --lib
|
||
|
|