Skip to content

Commit

Permalink
Edit approval workflow and update miscellanea
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpk committed Nov 22, 2022
1 parent ec4b63e commit 6c29019
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ jobs:
toolchain: stable
- run: rustup component add rustfmt
- run: cargo fmt --check

macrokata-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo run --bin macrokata -- check-all
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Contributing to Macrokata

Thank you for your interest in helping with MacroKata.

These instructions are probably incomplete (feel free to PR to add to them)!

## What are `solution.diff` files?

Since we have to maintain two separate files (the starter code, and the solution code),
it's very easy to make a change in one that affects the other.

Therefore, `solution.diff` files describe what the correct diff is between a starter
code and solution code. If you intentionally change this, use the `macrokata update-diff`
command to update the file. Part of any PR will be checking that this diff is sane.
9 changes: 8 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "macrokata"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
default-run = "macrokata"

Expand Down Expand Up @@ -109,3 +109,4 @@ path = "exercises/12_hygienic_macros/solutions/main.rs"
atty = "0.2.14"
clap = { version = "4.0.26", features = ["derive"] }
imara-diff = "0.1.5"
glob = "0.3.0"

0 comments on commit 6c29019

Please sign in to comment.