aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-10-07 14:48:41 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-12 07:41:30 +0100
commit9e148a4b216f349eb277aa029397139ba9d4994e (patch)
tree664781480a469008011db3252e210cd2b322058b /.github/workflows
parent184c39579227c0add80a61d489c242120001d6b6 (diff)
downloadtools.nes-9e148a4b216f349eb277aa029397139ba9d4994e.tar.gz
tools.nes-9e148a4b216f349eb277aa029397139ba9d4994e.zip
ci: Enable Github Actions for the project
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..66fcaa8
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,22 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+env:
+ RUSTFLAGS: "-Dwarnings"
+
+jobs:
+ clippy_check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Run tests
+ run: cargo test
+
+ - name: Run Clippy
+ run: cargo clippy --all-targets --all-features