From 6de74a3a827f162fa47f7a49e247c819b8526e0c Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 19 Mar 2026 18:33:10 +0200 Subject: [PATCH] setup workflow --- .github/FUNDING.yml | 1 + .github/workflows/linux.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 37 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/linux.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..ada8a24 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://yggverse.github.io/#donate \ No newline at end of file diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..09b8993 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,32 @@ +name: Linux + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings + +jobs: + build: + + # https://github.com/actions/runner-images + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + - name: Update rustup + run: rustup update + - name: Update cargo + run: cargo update + - name: Run rustfmt + run: cargo fmt --all -- --check + - name: Run clippy + run: cargo clippy --all-targets + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose \ No newline at end of file diff --git a/README.md b/README.md index bc076e4..0137a67 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # flarumdown +![Linux](https://github.com/YGGverse/flarumdown/actions/workflows/linux.yml/badge.svg) +[![Dependencies](https://deps.rs/repo/github/YGGverse/flarumdown/status.svg)](https://deps.rs/repo/github/YGGverse/flarumdown) +[![crates.io](https://img.shields.io/crates/v/flarumdown.svg)](https://crates.io/crates/flarumdown) + Flarum is down - read as Markdown CLI tool for Flarum v2 that allows to export public DB into the Markdown format.