Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Jun 27, 2022
1 parent 5cb00e1 commit 5d54174
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: npm install -g pnpm
- uses: actions-rs/cargo@v1
- name: Install JS dependencies
run: npm install -g pnpm
- name: Test Rust package
uses: actions-rs/cargo@v1
with:
command: test
- name: Lint Rust package
uses: actions-rs/cargo@v1
with:
command: clippy
# Build script in previous action should build js,
# so we don't need to run pnpm build here.
- run: pnpm test && pnpm lint
- name: Test JS package
run: pnpm test && pnpm lint
working-directory: js
- run: cargo install --path . --debug --locked
- run: mdbook build
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Install mdbook-quiz
run: cargo install --path . --debug --locked
- name: Build example mdbook
run: mdbook build
working-directory: example
- uses: peaceiris/actions-gh-pages@v3
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/book
Expand Down

0 comments on commit 5d54174

Please sign in to comment.