diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2ea1102a..bd3489ef 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,8 +1,5 @@ on: - push: - branches: main - pull_request: - branches: main + workflow_call: name: check @@ -19,7 +16,6 @@ jobs: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-latest, r: 'oldrel-1'} env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..461e432e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +on: + push: + branches: main + pull_request: + branches: main + +name: ci + +jobs: + + smoke: + + runs-on: ubuntu-latest + + name: "Smoke test: stock R" + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true + + check: + + needs: smoke + + uses: ./.github/workflows/check.yml + + coverage: + + needs: check + + uses: ./.github/workflows/coverage.yml + + lint: + + needs: check + + uses: ./.github/workflows/lint.yml + + pkgdown: + + needs: check + + uses: ./.github/workflows/pkgdown.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d01393ce..cd7f4bfa 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,8 +1,5 @@ on: - push: - branches: main - pull_request: - branches: main + workflow_call: name: coverage diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0266f07f..3d407b0d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,5 @@ on: - push: - branches: main - pull_request: - branches: main + workflow_call: name: lint diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index b16467e0..1ba9ddb9 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -1,11 +1,5 @@ on: - push: - branches: main - pull_request: - branches: main - release: - types: [published] - workflow_dispatch: + workflow_call: name: pkgdown