Skip to content

Commit

Permalink
github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Oct 10, 2024
1 parent 67adf2d commit 73ab23f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [maxcountryman]
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: 🐛 Bug Report
about: If something isn't working as expected 🤔.
---

<!--
Thank you for reporting an issue.
Please fill in as much of the template below as you're able.
-->

- [ ] I have looked for existing issues (including closed) about this

## Bug Report

### Version

<!--
List the version of `underway` you are using.
-->

### Platform

<!---
Output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
-->

### Crates

<!--
If known, please specify the related tower-sessions crates. Otherwise, delete this
section.
-->

### Description

<!--
Enter your issue details below this comment.
One way to structure the description:
<short summary of the bug>
I tried this code:
<code sample that causes the bug>
I expected to see this happen: <explanation>
Instead, this happened: <explanation>
-->
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: 🙏 GitHub Discussions
url: https://github.com/maxcountryman/underway/discussions
about: General support, questions-and-answers, feature requests, etc
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
71 changes: 71 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Rust

on:
push:
branches:
- main
pull_request: {}

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: |
rustup toolchain install nightly --profile minimal --component rustfmt --component clippy
- uses: Swatinem/rust-cache@v2
- name: clippy
run: |
cargo clippy --all --all-targets --all-features -- -Dwarnings
- name: rustfmt
run: |
cargo +nightly fmt --all -- --check
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: cargo doc
env:
RUSTDOCFLAGS: "-D rustdoc::broken-intra-doc-links"
run: |
cargo doc --all-features --no-deps
test-docs:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
rustup toolchain install nightly --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Run doc tests
run: |
cargo test --all-features --doc
test-lib:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
rustup toolchain install nightly --profile minimal
cargo install cargo-tarpaulin
- uses: Swatinem/rust-cache@v2
- name: Run lib tests
run: |
cargo test --workspace --all-features --lib
cargo tarpaulin --workspace --all-features --lib -olcov
- name: Upload coverage data to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 73ab23f

Please sign in to comment.