fixups to CI
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
name: Check dirty git
|
|
||||||
description: Check the git status of the current directory, and raise an error if there are uncommitted changes.
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Checking dirty git
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
# Workaround for https://github.com/actions/checkout/issues/766
|
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
||||||
|
|
||||||
if [[ -n $(git status --porcelain) ]]; then
|
|
||||||
echo "repo is dirty"
|
|
||||||
git status
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
@@ -25,6 +25,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev
|
||||||
- name: Rustup update
|
- name: Rustup update
|
||||||
run: rustup update
|
run: rustup update
|
||||||
- name: Show cargo version
|
- name: Show cargo version
|
||||||
@@ -40,7 +42,7 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --all --verbose --locked
|
run: cargo test --all --verbose --locked
|
||||||
- name: Check dirty git
|
- name: Check dirty git
|
||||||
uses: ./.github/actions/check-dirty-git
|
uses: cbeck88/check-dirty-git@v1
|
||||||
|
|
||||||
# Build and test with no default features
|
# Build and test with no default features
|
||||||
build-and-test-no-default-features:
|
build-and-test-no-default-features:
|
||||||
@@ -51,6 +53,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev
|
||||||
- name: Rustup update
|
- name: Rustup update
|
||||||
run: rustup update
|
run: rustup update
|
||||||
- name: Show cargo version
|
- name: Show cargo version
|
||||||
@@ -66,7 +70,35 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --no-default-features --verbose --locked
|
run: cargo test --no-default-features --verbose --locked
|
||||||
- name: Check dirty git
|
- name: Check dirty git
|
||||||
uses: ./.github/actions/check-dirty-git
|
uses: cbeck88/check-dirty-git@v1
|
||||||
|
|
||||||
|
# Build and test with all features
|
||||||
|
build-and-test-all-features:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: --deny warnings
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev
|
||||||
|
- name: Rustup update
|
||||||
|
run: rustup update
|
||||||
|
- name: Show cargo version
|
||||||
|
run: cargo --version
|
||||||
|
- name: Rust build caching
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: . -> target
|
||||||
|
key: all-features
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
- name: Build
|
||||||
|
run: cargo check --all-features --verbose --locked
|
||||||
|
- name: Test
|
||||||
|
run: cargo test --all-features --verbose --locked
|
||||||
|
- name: Check dirty git
|
||||||
|
uses: cbeck88/check-dirty-git@v1
|
||||||
|
|
||||||
# Linting and formatting
|
# Linting and formatting
|
||||||
lint:
|
lint:
|
||||||
@@ -74,6 +106,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev
|
||||||
- name: Rustup update and install nightly
|
- name: Rustup update and install nightly
|
||||||
run: |
|
run: |
|
||||||
rustup update
|
rustup update
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ An extensible monitoring tool, sending alerts via Signal messenger, and respondi
|
|||||||
|
|
||||||
[](LICENSE-APACHE)
|
[](LICENSE-APACHE)
|
||||||
[](LICENSE-MIT)
|
[](LICENSE-MIT)
|
||||||
|
[](https://github.com/cbeck88/signal-gateway/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user