Skip to content

Commit

Permalink
add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbenn committed Sep 26, 2023
1 parent 60b70c6 commit 313629a
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 20 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
on:
push:
branches: main
pull_request:
branches: main
workflow_call:

name: check

Expand All @@ -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:
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 1 addition & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
on:
push:
branches: main
pull_request:
branches: main
workflow_call:

name: coverage

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
on:
push:
branches: main
pull_request:
branches: main
workflow_call:

name: lint

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
on:
push:
branches: main
pull_request:
branches: main
release:
types: [published]
workflow_dispatch:
workflow_call:

name: pkgdown

Expand Down

0 comments on commit 313629a

Please sign in to comment.