Skip to content

Commit

Permalink
Merge pull request #2 from UBC-STAT/cicd
Browse files Browse the repository at this point in the history
ci example
  • Loading branch information
chendaniely authored Jun 1, 2024
2 parents 7fabdb6 + 4db3fdf commit 7db7283
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push, pull_request]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: macos-latest

steps:
- name: Checkout files from GitHub version control repository
uses: actions/checkout@v2

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

- name: Install R packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Checks if R package can be installed
uses: r-lib/actions/check-r-package@v2
17 changes: 17 additions & 0 deletions .github/workflows/ci_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI Example

on: [push, pull_request, workflow_dispatch]

jobs:
my_steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run a one-line script
run: echo Hello, world!

- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.

0 comments on commit 7db7283

Please sign in to comment.