-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.03 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Check register
on:
push:
branches:
- master
jobs:
check:
runs-on: ubuntu-20.04
container:
image: codecheckers/register:latest
volumes:
- "/home/runner/work/codecheckers/register:/register"
steps:
- name: Checkout
uses: actions/checkout@v4
- 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
env:
PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Check
run: |
# R -e "sessionInfo(); cat('\n'); list.files(); cat('\n'); getwd()"
R -e 'options("R.cache.rootPath" = "/tmp"); codecheck::register_check(); warnings()'
env:
PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Rate after
if: always()
run: |
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit
env:
PAT: ${{ secrets.GITHUB_TOKEN }}