Skip to content

Commit

Permalink
github actions first try
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Blätte authored and Andreas Blätte committed Jul 1, 2023
1 parent c49d652 commit be2e2af
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
@@ -1,2 +1,3 @@
^README.Rmd$
^README.md$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
@@ -0,0 +1 @@
*.html
35 changes: 35 additions & 0 deletions .github/workflows/R-CMD-check.yaml
@@ -0,0 +1,35 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, devel]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Install dev version of polmineR
run: |
install.packages(pkgs = "polmineR", contriburl = "https://polmine.github.io/drat/src/contrib", type = "source")
shell: Rscript {0}


- uses: r-lib/actions/check-r-package@v2
1 change: 1 addition & 0 deletions README.Rmd
Expand Up @@ -8,6 +8,7 @@ editor_options:
<!-- badges: start -->
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-green.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![R-CMD-check](https://github.com/PolMine/duplicates/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/PolMine/duplicates/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->


Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -7,6 +7,7 @@ Introducing the duplicates package
v3](https://img.shields.io/badge/License-GPLv3-green.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![R-CMD-check](https://github.com/PolMine/duplicates/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/PolMine/duplicates/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

## About
Expand Down

0 comments on commit be2e2af

Please sign in to comment.