mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2025-01-03 15:34:18 +00:00
Run tests on every pull request
This commit is contained in:
parent
d87e19d81f
commit
0874a5dd17
1 changed files with 30 additions and 0 deletions
30
.github/workflows/tests.yml
vendored
Normal file
30
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: "Continuous integration"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_call:
|
||||
|
||||
|
||||
jobs:
|
||||
cargotest:
|
||||
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
|
Loading…
Reference in a new issue