diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3360310..c58c50f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,8 +16,6 @@ jobs: mkdir mdbook 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=./mdbook echo `pwd`/mdbook >> $GITHUB_PATH - - name: Update dependencies - run: sudo apt update && sudo apt upgrade -y - name: Install plantuml run: sudo apt-get install plantuml - name: Install Rust diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c87927c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Verify +on: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install mdbook + run: | + mkdir mdbook + 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=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: Install plantuml + run: sudo apt-get install plantuml + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Install mdbook-plantuml + uses: actions-rs/cargo@v1 + with: + command: install + args: mdbook-plantuml + - name: Deploy GitHub Pages + run: mdbook build +