You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2021/08/06 22:46:12 UTC
[arrow-cookbook] branch main updated: Also run CI on pull requests
to the main branch (#21)
This is an automated email from the ASF dual-hosted git repository.
westonpace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-cookbook.git
The following commit(s) were added to refs/heads/main by this push:
new c64d0fb Also run CI on pull requests to the main branch (#21)
c64d0fb is described below
commit c64d0fb68b17739a646aea9436b5fc31e3af549f
Author: Nic <th...@gmail.com>
AuthorDate: Fri Aug 6 22:46:06 2021 +0000
Also run CI on pull requests to the main branch (#21)
* Also run CI on pull requests to the main branch
* Separate out test/dploy scripts
* add tests back into deply stage
* rename jobs for consistency
---
.github/workflows/deploy_cookbooks.yml | 9 +++++----
.github/workflows/test_cookbooks.yml | 23 +++++++++++++++++++++++
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/deploy_cookbooks.yml b/.github/workflows/deploy_cookbooks.yml
index 03f80e2..4cead47 100644
--- a/.github/workflows/deploy_cookbooks.yml
+++ b/.github/workflows/deploy_cookbooks.yml
@@ -3,11 +3,11 @@ on:
branches:
- main
-name: render_cookbooks
+name: Deploy Cookbooks
jobs:
- make_books:
- name: Render-Book
+ make_cookbooks:
+ name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@@ -27,7 +27,8 @@ jobs:
name: build_book
path: build/
- checkout-and-deploy:
+ deploy_cookbooks:
+ name: deploy
runs-on: ubuntu-latest
needs: make_books
steps:
diff --git a/.github/workflows/test_cookbooks.yml b/.github/workflows/test_cookbooks.yml
new file mode 100644
index 0000000..7ab3557
--- /dev/null
+++ b/.github/workflows/test_cookbooks.yml
@@ -0,0 +1,23 @@
+on:
+ pull_request:
+ branches:
+ - main
+
+name: Test Cookbooks
+
+jobs:
+ test_cookbooks:
+ name: test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Setup R
+ uses: r-lib/actions/setup-r@v1
+ - name: Setup pandoc
+ uses: r-lib/actions/setup-pandoc@v1
+ - name: Install dependencies
+ run: sudo apt install libcurl4-openssl-dev libssl-dev python3-pip
+ - name: Run tests
+ run: make test
+ - name: Build cookbooks
+ run: make all