From 87dc973e2db634d1fe0787c4d8854c357a100080 Mon Sep 17 00:00:00 2001 From: Ian Boyes Date: Tue, 20 Feb 2024 15:24:42 -0800 Subject: [PATCH] ci: add `load_all()` test to make sure package works --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..17a8660 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: ci + +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" + +jobs: + load: + runs-on: ubuntu-22.04 + if: github.event_name == 'pull_request' + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup R + uses: r-lib/actions/setup-r@v2 + - name: Setup R Dependencies + uses: r-lib/actions/setup-r-dependencies@v1 + with: + extra-packages: | + devtools + - name: Load + run: R -e 'devtools::load_all()' \ No newline at end of file