Skip to content

Commit

Permalink
chore(workflows): move reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Nov 14, 2023
1 parent 0f623fb commit 83fa939
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
30 changes: 22 additions & 8 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
# 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:
branch: [main, master]
pull_request:
branch: [main, master]

name: lint
on:
workflow_call:

jobs:
lint:
uses: ssi-dk/AEF-DDF/reuseable_workflows/lint.yaml@main
secrets: inherit
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
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::lintr, local::.
needs: lint

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
File renamed without changes.
28 changes: 0 additions & 28 deletions reuseable_workflows/lint.yaml

This file was deleted.

0 comments on commit 83fa939

Please sign in to comment.