From ddf6528fe7398adeb4b8109fe1f386745d12dd71 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 20 Feb 2023 12:39:48 +0100 Subject: [PATCH] Add a CI workflow to test build PRs --- .github/workflows/build-pr.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-pr.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000000..9e33e93785 --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,30 @@ +name: 🌌 Test Build + +on: [pull_request] + +# Make sure jobs cannot overlap (e.g. one from push and one from schedule). +concurrency: + group: pr-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-ci + cancel-in-progress: true + +jobs: + build: + name: Build sources from the PR branch + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + # Configure the build environment. + + - name: Install Ruby 3.1 + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.1' + # Runs 'bundle install' and caches installed gems automatically + bundler-cache: true + + # Build the website. + + - name: Build the static website + run: bundle exec jekyll build