Skip to content

Commit

Permalink
Merge pull request #212 from metrumresearchgroup/add-github-actions
Browse files Browse the repository at this point in the history
add github actions
  • Loading branch information
andersone1 authored May 22, 2024
2 parents 559843f + 7dadf5f commit 755db52
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgr.yml
^.*\.Rproj$
^man-roxygen$
^README\.Rmd$
^.drone.yml$
^\.github$
make-R.R
inst/example-sdtm-large-ae
inst/example-sdtm-large-lb
163 changes: 0 additions & 163 deletions .drone.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: CI
on:
push:
branches:
- 'main'
- 'scratch/**'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
pull_request:

jobs:
check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} R ${{ matrix.config.r }} ${{ matrix.config.label }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
r: 4.0.5
- os: ubuntu-20.04
r: 4.1.3
- os: ubuntu-latest
r: release
env:
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: metrumresearchgroup/actions/mpn-latest@v1
- name: Install subversion
shell: bash
run: sudo apt-get install subversion
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
extra-repositories: 'https://mpn.metworx.com/snapshots/stable/${{ env.MPN_LATEST }}'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::pkgdown
any::rcmdcheck
upgrade: 'TRUE'
- uses: r-lib/actions/check-r-package@v2
- name: Check pkgdown
shell: Rscript {0}
run: pkgdown::check_pkgdown()
release:
if: github.ref_type == 'tag'
name: Upload release
needs: check
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: metrumresearchgroup/actions/mpn-latest@v1
- name: Install subversion
shell: bash
run: sudo apt-get install subversion
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
extra-repositories: 'https://mpn.metworx.com/snapshots/stable/${{ env.MPN_LATEST }}'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgpub
- uses: metrumresearchgroup/actions/publish-r-release@v1
3 changes: 1 addition & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ knitr::opts_chunk$set(
# mrgda <a href='https:/metrumresearchgroup.github.io/mrgda'><img src='man/figures/logo.png' align="right" width="135px"/></a>

<!-- badges: start -->
[![Build Status](https://github-drone.metrumrg.com/api/badges/metrumresearchgroup/mrgda/status.svg)](https://github-drone.metrumrg.com/metrumresearchgroup/mrgda)
[![codecov](https://codecov.io/gh/metrumresearchgroup/mrgda/branch/main/graph/badge.svg)](https://codecov.io/gh/metrumresearchgroup/mrgda)
[![Build Status](https://github.com/metrumresearchgroup/mrgda/actions/workflows/main.yaml/badge.svg)](https://github.com/metrumresearchgroup/mrgda/actions/workflows/main.yaml)
<!-- badges: end -->

## Overview
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<!-- badges: start -->

[![Build
Status](https://github-drone.metrumrg.com/api/badges/metrumresearchgroup/mrgda/status.svg)](https://github-drone.metrumrg.com/metrumresearchgroup/mrgda)
[![codecov](https://codecov.io/gh/metrumresearchgroup/mrgda/branch/main/graph/badge.svg)](https://codecov.io/gh/metrumresearchgroup/mrgda)
Status](https://github.com/metrumresearchgroup/mrgda/actions/workflows/main.yaml/badge.svg)](https://github.com/metrumresearchgroup/mrgda/actions/workflows/main.yaml)
<!-- badges: end -->

## Overview
Expand Down

0 comments on commit 755db52

Please sign in to comment.