From 4d297e1828539082363b2985aa74a44939c5eb51 Mon Sep 17 00:00:00 2001 From: Will Crichton Date: Tue, 19 Sep 2023 17:11:51 -0700 Subject: [PATCH] Fix CI --- .github/workflows/release.yml | 6 ++++++ .github/workflows/setup/action.yaml | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f01e1c8..8a980a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,10 +34,16 @@ jobs: target: ${{ matrix.target }} profile: minimal override: true + - name: Install cargo-make + uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-make - name: Install Depot run: | curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV + - name: Initialize TS bindings + run: cargo make init-bindings - name: Build Rust package run: cargo build -p mdbook-quiz --release - name: Package artifact diff --git a/.github/workflows/setup/action.yaml b/.github/workflows/setup/action.yaml index 25f3355..4ec39d7 100644 --- a/.github/workflows/setup/action.yaml +++ b/.github/workflows/setup/action.yaml @@ -16,14 +16,13 @@ runs: run: curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh shell: bash # Note: we have to build before test so the build script is executed - - name: Build Rust package - run: cargo build -p mdbook-quiz - shell: bash + - name: Initialize TS bindings + run: cargo make init-bindings - name: Test Rust package - run: cargo test + run: cargo test shell: bash - name: Lint Rust package - run: cargo clippy -- -D warnings + run: cargo clippy -- -D warnings shell: bash - name: Test JS package run: depot test