Skip to content

Commit

Permalink
Add GitHub actions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeggitt committed Jun 16, 2024
1 parent 4e36ed6 commit 7fb6aab
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
pull_request:
paths-ignore:
- "**.md"
merge_group:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
branches:
- master

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTFLAGS="--deny warnings" cargo clippy

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features

check-format:
name: check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --check

all-jobs-succeed:
name: All checks succeeded
if: success()
runs-on: ubuntu-latest
needs: [clippy, test, check-format]
steps:
- name: Mark the job as successful
run: exit 0
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# `serde_flat_path`
[![build_status](https://github.com/jmeggitt/serde_flat_path/actions/workflows/ci.yml/badge.svg)](https://github.com/jmeggitt/serde_flat_path/actions)
[![crates.io](https://img.shields.io/crates/v/serde_flat_path.svg)](https://crates.io/crates/serde_flat_path)

This crate was designed to solve the problem of needing to manually create placeholder structs or untyped values (such
as `serde_json::Value`). For example, take this json file:
```json
Expand Down

0 comments on commit 7fb6aab

Please sign in to comment.