Skip to content

Commit

Permalink
ci: add common ci.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
ikremniou committed Dec 17, 2023
1 parent 3b54541 commit d476734
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: ["master"]
pull_request:

jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Rust clippy
run: cargo clippy -- -Dclippy::all -D warnings

rust-fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Rust fmt
run: cargo fmt --check

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Rust test
run: cargo test --workspace
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"clippy",
"Renpy",
"Unrparc"
],
Expand Down

0 comments on commit d476734

Please sign in to comment.