mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 10:04:21 +00:00
33 lines
668 B
YAML
33 lines
668 B
YAML
|
name: "Continuous integration"
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- main
|
||
|
workflow_call:
|
||
|
|
||
|
|
||
|
jobs:
|
||
|
cargotest:
|
||
|
name: "Run checks and tests on the repository"
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: "Checkout repository"
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: "Install Rust toolchain"
|
||
|
uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
|
||
|
- name: "Run cargo clippy"
|
||
|
uses: actions-rs/clippy-check@v1
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
args: --all-features
|
||
|
|
||
|
- name: "Run cargo test"
|
||
|
uses: actions-rs/cargo@v1
|
||
|
with:
|
||
|
command: test
|