Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Sep 20, 2023
1 parent 5bdbeae commit 4d297e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d297e1

Please sign in to comment.