Skip to content

Commit

Permalink
separate build step and check
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Aug 1, 2024
1 parent 6a7f87a commit 7730e35
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ jobs:
- name: Run R CMD check
run: |
digest=$(ls /tmp/digests)
docker run --rm -v $(pwd):/workspace -w /workspace ${{ env.DOCKER_IMAGE }}@sha256:$digest R CMD check .
# Build the package
docker run --rm -v $(pwd):/workspace -w /workspace ${{ env.DOCKER_IMAGE }}@sha256:$digest R CMD build .
# Extract the name of the generated tar.gz file
package_file=$(ls *.tar.gz)
# Run package checks on the tar.gz file
docker run --rm -v $(pwd):/workspace -w /workspace ${{ env.DOCKER_IMAGE }}@sha256:$digest R CMD check $package_file
merge:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7730e35

Please sign in to comment.