Skip to content

Commit

Permalink
Centralize the workflows to hta-pharma/ramnog (#10)
Browse files Browse the repository at this point in the history
* Add junit output

* fix formatting

* fixing paths

* fixing paths

* more fixing

* more path tweaking

* more path fixing

* more path fixing

* debugging

* fixing fixing

* files

* update permissions

* more nudging

* Check-package now consumes from ramnog

* Points DevOps flow to hta-pharma/ramnog consolidating both pre-commit config and github actions

* point workflows to ramnog@main

* updated readme to point at ramnog for dev doc
  • Loading branch information
HenrikSpiegel authored Mar 21, 2024
1 parent f1df43b commit c2450c8
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 715 deletions.
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ for branch in "${protected_branches[@]}"; do
done


exit 0
exit 0
34 changes: 2 additions & 32 deletions .github/workflows/Check-package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@



on:
push:
branches: [main, stage, dev]
Expand All @@ -11,36 +8,9 @@ on:
name: Check Package 📦

jobs:
audit:
name: Audit Dependencies 🕵️‍♂️
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main

licenses:
name: License Check 🃏
uses: insightsengineering/r.pkg.template/.github/workflows/licenses.yaml@main

check:
name: RMD check 📦
uses: ./.github/workflows/R-CMD-check.yaml

test:
name: Test 🧪
uses: ./.github/workflows/Test.yaml

gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
with:
check-for-pii: true

# vbump:
# name: Version Bump 🤜🤛
# if: github.event_name == 'push' && github.ref != 'refs/heads/main'
# uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main
# with:
# disable-precommit-autoupdate: true
# secrets:
# REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Checks (from ramnog)
uses: hta-pharma/ramnog/.github/workflows/Check-package.yaml@main



50 changes: 0 additions & 50 deletions .github/workflows/R-CMD-check.yaml

This file was deleted.

34 changes: 14 additions & 20 deletions .github/workflows/Release-package.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
on:
push:
branches: [main, stage, dev]
pull_request:
branches: [main, stage, dev]
workflow_dispatch:

name: Release Package
name: Check Package 📦

jobs:
build:
name: RMD Build and check
uses: ./.github/workflows/R-CMD-check.yaml
docs:
needs: build
name: Build and Deploy Docs
uses: ./.github/workflows/pkgdown.yaml
release:
needs: [build, docs]
name: Release
if: github.event_name != 'pull_request'
uses: ./.github/workflows/release.yaml
jobs:
check:
name: Release (from ramnog)
uses: hta-pharma/ramnog/.github/workflows/Release-package.yaml@main



180 changes: 0 additions & 180 deletions .github/workflows/Roxygen.yaml

This file was deleted.

Loading

0 comments on commit c2450c8

Please sign in to comment.