Skip to content

Commit

Permalink
Adding SNPHOST workflows to SNPGUEST
Browse files Browse the repository at this point in the history
Signed-off-by: DGonzalezVillal <[email protected]>
  • Loading branch information
DGonzalezVillal committed Mar 26, 2024
1 parent a4b9ca0 commit d0b71b9
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [push, pull_request]
name: lint
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: rustfmt
toolchain: nightly
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y asciidoctor
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: clippy
toolchain: 1.70.0
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D clippy::all -D unused_imports -Dwarnings
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: [push, pull_request]
name: test
jobs:
test:
name: ${{ matrix.toolchain }} (${{ matrix.profile.name }})
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y asciidoctor
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
toolchain:
- nightly
- beta
- stable
profile:
- name: debug
- name: release
flag: --release

0 comments on commit d0b71b9

Please sign in to comment.