From 0c1b891a9aa11ed4092a7573be6321bc7ee360e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C3=BCst?= Date: Wed, 13 Nov 2024 15:22:00 +0100 Subject: [PATCH] run check in CI --- .github/workflows/check.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..209c182 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,34 @@ +name: Render register + +on: + push: + branches: + - master + +jobs: + check: + if: ${{ needs.changes.outputs.register == 'true' }} + runs-on: ubuntu-20.04 + container: + image: codecheckers/register:latest + volumes: + - "/home/runner/work/codecheckers/register:/register" + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: git config --system --add safe.directory /__w/register/register + - name: Rate before + run: | + curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit + - name: Render + run: | + # R -e "sessionInfo(); cat('\n'); list.files(); cat('\n'); getwd()" + R -e 'options("R.cache.rootPath" = "/tmp"); codecheck::register_check(); warnings()' + - name: Rate after + run: | + curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit + - name: Update register + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_author: CODECHECK bot + commit_message: Update register renderings