From b19f1b4a1e172d4d8fbd2c3cd1dc24e7a24784bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kuras?= Date: Thu, 22 Feb 2024 15:39:48 +0100 Subject: [PATCH] Test GH Action --- .github/workflows/deploy.yml | 2 -- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ src/section-4-best-practices | 1 + 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 src/section-4-best-practices diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 228f4d1..38758b6 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..8d6699d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Verify +on: + push: + pull_request: + +jobs: + test: + 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: Test build + run: mdbook build + diff --git a/src/section-4-best-practices b/src/section-4-best-practices new file mode 100644 index 0000000..9380e37 --- /dev/null +++ b/src/section-4-best-practices @@ -0,0 +1 @@ +# Section:4 Best Practices