Skip to content

Commit

Permalink
Enable initial CI
Browse files Browse the repository at this point in the history
Signed-off-by: Gris Ge <[email protected]>
  • Loading branch information
cathay4t committed Aug 13, 2024
1 parent 43dc5da commit b0b40dd
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/clippy-rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Rustfmt and clippy check

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main

jobs:
rustfmt_clippy:
strategy:
fail-fast: true

name: Rustfmt and clippy check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust Nightly
run: |
rustup override set nightly
rustup update nightly
rustup component add rustfmt clippy
- name: rustfmt
run: cargo fmt --all -- --check

- name: cargo clippy
run: cargo clippy
19 changes: 19 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: license

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main

jobs:
check-license:
name: Check License
runs-on: ubuntu-latest
timeout-minutes: 3

steps:
- uses: actions/checkout@v3
- name: Check License Header
uses: apache/[email protected]

0 comments on commit b0b40dd

Please sign in to comment.