Skip to content

Handle merge conflict #32

Handle merge conflict

Handle merge conflict #32

Workflow file for this run

# This is a basic workflow to help you get started with Actions

Check failure on line 1 in .github/workflows/codecov.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codecov.yml

Invalid workflow file

(Line: 50, Col: 9): Unexpected value 'run', (Line: 51, Col: 9): Unexpected value 'shell', (Line: 47, Col: 9): Required property is missing: uses
name: codecov
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the dev branch
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test-coverage:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("covr")
shell: Rscript {0}
- name: Test coverage
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: covr::codecov()
shell: Rscript {0}