Skip to content
Permalink
Browse files
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
  • Loading branch information
thisisnic committed Aug 6, 2021
1 parent 3fff4ec commit c64d0fb68b17739a646aea9436b5fc31e3af549f
Showing 2 changed files with 28 additions and 4 deletions.
@@ -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:
@@ -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

0 comments on commit c64d0fb

Please sign in to comment.