fmt(/): run cargo format #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test-formatting: | |
name: Code style check | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '-skip')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run fmt test | |
uses: actions-rs/[email protected] | |
with: | |
command: fmt | |
args: -- --check | |
test-stable: | |
name: Run tests on Stable | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '-stable')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
- name: Run test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
toolchain: stable | |
test-beta: | |
name: Run tests on Beta | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '-beta')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup beta toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: beta | |
- name: Run test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
toolchain: beta | |
test-nightly: | |
name: Run tests on Nightly | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '-skip')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup nightly toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
- name: Run test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
toolchain: nightly |