name: "Continuous Integration"
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
ubuntu:
name: Check, Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: check
uses: actions-rs/cargo@v1
with:
command: check
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: test
uses: actions-rs/cargo@v1
with:
command: test
macos:
name: Check, Build and Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: check
uses: actions-rs/cargo@v1
with:
command: check
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: test
uses: actions-rs/cargo@v1
with:
command: test