summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/format.yml12
-rw-r--r--.github/workflows/test.yml4
2 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
new file mode 100644
index 00000000..92caff79
--- /dev/null
+++ b/.github/workflows/format.yml
@@ -0,0 +1,12 @@
+name: Format
+on: [push, pull_request]
+jobs:
+ all:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ with:
+ components: rustfmt
+ - uses: actions/checkout@master
+ - name: Check format
+ run: cargo fmt --all -- --check
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8c5ded3a..9e73d3d3 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -27,3 +27,7 @@ jobs:
- uses: actions/checkout@master
- name: Run checks
run: cargo check --package iced --target wasm32-unknown-unknown
+ - name: Check compilation of `tour` example
+ run: cargo build --package tour --target wasm32-unknown-unknown
+ - name: Check compilation of `pokedex` example
+ run: cargo build --package pokedex --target wasm32-unknown-unknown