Skip to content

Commit

Permalink
[do not merge] check
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Nov 18, 2024
1 parent aa22ad5 commit bcfb0b8
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 256 deletions.
3 changes: 1 addition & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Makefile
test.R
^.*\.Rproj$
^\.Rproj\.user$
\.drone\.jsonnet
WORDLIST
\.drone\.yml
^\.github$
temp
254 changes: 0 additions & 254 deletions .drone.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
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 }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
r: 3.6.3
- os: ubuntu-20.04
r: 4.0.5
- os: ubuntu-20.04
r: 4.1.3
- os: ubuntu-20.04
r: 4.2.3
- os: ubuntu-20.04
r: 4.3.1
- os: ubuntu-latest
r: release
env:
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
env:
RSPM: ${{ matrix.config.rspm }}
- name: Set Matrix source
if: matrix.config.r != 'release'
shell: bash
run: |
echo 'MATRIX_PKG=url::https://mpn.metworx.com/snapshots/stable/2024-09-23/src/contrib/Matrix_1.6-5.tar.gz' >>$GITHUB_ENV
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
${{ env.MATRIX_PKG }}
upgrade: ${{ matrix.config.r == 'release' && 'TRUE' || 'FALSE' }}
- uses: r-lib/actions/check-r-package@v2
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
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
# For pkgpub.
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

0 comments on commit bcfb0b8

Please sign in to comment.