diff --git a/.forgejo/workflows/lint.yaml b/.forgejo/workflows/lint.yaml new file mode 100644 index 00000000..16c3544e --- /dev/null +++ b/.forgejo/workflows/lint.yaml @@ -0,0 +1,54 @@ +name: 'Build' +run-name: 'Building xmpp-rs libraries' +on: + workflow_dispatch: + + push: + + pull_request: + types: + - 'opened' + +env: + FEATURES: "" + RUST_BACKTRACE: "full" + +jobs: + lint: + runs-on: 'docker' + container: + image: 'rust:slim' + steps: + - name: Install deps + run: apt update; apt install -y --no-install-recommends nodejs + - name: Checkout + uses: actions/checkout@v4 + with: + repository: https://code.bouah.net/pep/xmpp-rs + - name: Rustfmt + run: rustup update; rustup component add rustfmt; cargo fmt --check + test-stable: + runs-on: 'docker' + container: + image: 'rust:slim' + steps: + - name: Print versions + run: rustc --version; cargo --version + - name: Install deps + - run: apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev nodejs + - name: Run tests + run: cargo test --verbose --release -- --include-ignored + - name: Run tests without default features + run: cargo test --verbose --no-default-features + test-nightly: + runs-on: 'docker' + container: + image: 'rustlang/rust:nightly-slim' + steps: + - name: Print versions + run: rustc --version; cargo --version + - name: Install deps + - run: | + apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev nodejs + cargo test --verbose --release -- --include-ignored + cargo test --verbose --no-default-features diff --git a/.gitea b/.gitea new file mode 120000 index 00000000..d9a4b42c --- /dev/null +++ b/.gitea @@ -0,0 +1 @@ +.forgejo \ No newline at end of file