Skip to content

Commit

Permalink
feat(meta): overhaul github actions, templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed Nov 12, 2023
1 parent 61e011e commit 719a8ee
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 205 deletions.
68 changes: 0 additions & 68 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/improvement_request.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/question.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/clippy.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/pr.yml

This file was deleted.

80 changes: 69 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,74 @@
name: Unit Tests (On Push)
name: test

on: [push]
on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run Tests
run: |
cargo test --release -- test_ --nocapture
test:
name: test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest

steps:
- uses: actions/checkout@v3
- name: Run Tests
run: |
cargo test --release -- test_ --nocapture
doctest:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo test --workspace --doc

clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: giraffate/clippy-action@v1
with:
reporter: "github-pr-review"
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: "-- --allow clippy::new_without_default --allow clippy::redundant_field_names --allow clippy::too_many_arguments --allow clippy::format_in_format_args --allow clippy::should_implement_trait"
filter_mode: nofilter

rustfmt:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --check --all

check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustc
- run: cargo check --workspace --all-targets --all-features
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 719a8ee

Please sign in to comment.