Skip to content

Commit

Permalink
cron job to make sure weird projects havent been added
Browse files Browse the repository at this point in the history
  • Loading branch information
mhpob committed Feb 8, 2024
1 parent a1f1364 commit cbea5f6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check_multimatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'

name: Check multiple ACT-OTN matches

jobs:
check_it:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
MATOS_USER: ${{ secrets.MATOS_USERNAME }}
MATOS_PASS: ${{ secrets.MATOS_PASSWORD }}

steps:
- name: Check out GH repository
uses: actions/checkout@v4

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::testthat

- name: Check test-list_projects
shell: Rscript {0}
run: |
testthat::test_file('tests/testthat/test-list_projects.R')
- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

0 comments on commit cbea5f6

Please sign in to comment.