Skip to content

Commit

Permalink
feat: added tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kolomanski committed Oct 31, 2024
1 parent 1fcc2a2 commit 0de06a1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/admiral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ jobs:
needs: get_r_version
with:
r-version: "${{ needs.get_r_version.outputs.r-version }}"
test:
runs-on: ubuntu-latest
needs: get_r_version
container:
image: "ghcr.io/pharmaverse/admiralci-${{ needs.get_r_version.outputs.r-version }}:latest"
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install dependencies
run: |
Rscript -e 'install.packages("remotes")'
Rscript -e 'remotes::install_deps(dependencies = TRUE)'
- name: Run tests
run: |
Rscript -e 'if (!requireNamespace("testthat", quietly = TRUE)) install.packages("testthat")'
Rscript -e 'testthat::test_dir("tests/testthat")'
check:
name: Check
uses: pharmaverse/admiralci/.github/workflows/r-cmd-check.yml@main
Expand Down

0 comments on commit 0de06a1

Please sign in to comment.