diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..8e98070 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: ci +on: + pull_request: + push: + branches: + - main + +jobs: + rustfmt: + name: Check rustfmt + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: cargo fmt --all -- --check + + test: + name: Run linter + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + env: + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: clippy + run: cargo clippy + + - name: test + run: cargo test diff --git a/examples/README.md b/examples/README.md deleted file mode 100644 index 82b9a95..0000000 --- a/examples/README.md +++ /dev/null @@ -1,5 +0,0 @@ -See the examples for [`imgui-glium-renderer`][glium] or [`imgui-glow-renderer`][glow] -for simple examples of this platform backend with different renderers - -[glium]: ../../imgui-glium-renderer/examples -[glow]: ../../imgui-glow-renderer/examples