Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
chore: badges, update GH workflows, dependabot (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger authored Jan 7, 2023
1 parent d74c638 commit 05aba53
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
20 changes: 13 additions & 7 deletions .github/workflows/test.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: CI

on:
push:
Expand All @@ -12,11 +12,14 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
- name: Update Rust

- name: Install Rust toolchain
run: |
rustup update
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
rustup component add clippy --toolchain nightly
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
Expand All @@ -29,9 +32,12 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Check code formatting
run: cargo +nightly fmt --all --check
- name: Lint
run: cargo clippy -- -D warnings
- name: Test

- name: Check code format (cargo fmt)
run: cargo +nightly fmt --check

- name: Lint (cargo clippy)
run: cargo clippy --no-deps -- -D warnings

- name: Test (cargo test)
run: cargo test
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Configured

[![Crates.io][crates-badge]][crates-url]
[![license][license-badge]][license-url]
[![build][build-badge]][build-url]

[crates-badge]: https://img.shields.io/crates/v/configured
[crates-url]: https://crates.io/crates/configured
[license-badge]: https://img.shields.io/github/license/hseeberger/configured
[license-url]: https://github.com/hseeberger/configured/blob/main/LICENSE
[build-badge]: https://img.shields.io/github/actions/workflow/status/hseeberger/configured/ci.yaml
[build-url]: https://github.com/hseeberger/configured/actions/workflows/ci.yaml

Opinionated utility to load a configuration from three well defined layers into any type which can
be deserialized by [Serde](https://serde.rs/) using kebab-case.

Expand Down

0 comments on commit 05aba53

Please sign in to comment.