Skip to content

Commit

Permalink
Merge pull request #7 from atomic77/update_actions
Browse files Browse the repository at this point in the history
add basic test case coverage, actions streamlining
  • Loading branch information
atomic77 authored Jan 10, 2024
2 parents ee2df9a + f3a8d2c commit 3f759e2
Show file tree
Hide file tree
Showing 6 changed files with 653 additions and 371 deletions.
52 changes: 11 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,21 @@
# Borrowed from
# https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md

on: [push, pull_request]

name: Continuous integration
name: Build on push

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
toolchain: 1.73
components: rustfmt, clippy
- name: Build
run: cargo build
- name: Run clippy and fail if any warnings
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test
9 changes: 6 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build release

# TODO: Add targets for arm and container image build
on:
push:
branches:
- master
workflow_dispatch:
# push:
# branches:
# - master


jobs:
release:
Expand Down
Loading

0 comments on commit 3f759e2

Please sign in to comment.