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:
|
||||
- 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
|
||||
@@ -40,7 +42,7 @@ jobs:
|
||||
- name: Test
|
||||
run: cargo test --all --verbose --locked
|
||||
- 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-no-default-features:
|
||||
@@ -51,6 +53,8 @@ jobs:
|
||||
|
||||
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
|
||||
@@ -66,7 +70,35 @@ jobs:
|
||||
- name: Test
|
||||
run: cargo test --no-default-features --verbose --locked
|
||||
- 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
|
||||
lint:
|
||||
@@ -74,6 +106,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- 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
|
||||
run: |
|
||||
rustup update
|
||||
|
||||
@@ -5,6 +5,7 @@ An extensible monitoring tool, sending alerts via Signal messenger, and respondi
|
||||
|
||||
[](LICENSE-APACHE)
|
||||
[](LICENSE-MIT)
|
||||
[](https://github.com/cbeck88/signal-gateway/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
Reference in New Issue
Block a user