diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 09f3e9d..428ebd1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,17 +14,6 @@ on: branches: - main workflow_call: - inputs: - dep_path: - description: Path of the dependency file. - required: false - type: string - default: "dependencies.yml" - # lintr_error_on_lint: - # description: Raise lintr error when lints found. - # required: false - # default: true - # type: boolean concurrency: group: check-test-${{ github.event.pull_request.number || github.ref }} @@ -41,24 +30,6 @@ jobs: - name: Checkout project ⬇️ uses: actions/checkout@v4 - - name: Normalize variables 📐 - run: | - dep_path="${{ inputs.dep_path }}" - echo "dep_path=${dep_path:-'dependencies.yml'}" >> $GITHUB_ENV - shell: bash - - # - name: Install package dependencies 📄 - # run: | - # if (file.exists(${{ env.dep_path }})) { - # repos <- yaml::yaml.load(readLines(${{ env.dep_path }}))$dependencies |> - # sapply(function(x) x$repo) - # if(repos |> length() > 0) { - # repos |> - # pak::pak(dependencies = TRUE, ask = FALSE, upgrade = FALSE) - # } - # } - # shell: Rscript {0} - - name: Install package dependencies 📄 uses: ./.github/actions/dependencies @@ -76,8 +47,3 @@ jobs: devtools::test() shell: Rscript {0} - # - name: Lintr 🔍 - # run: lintr::lint_package() - # shell: Rscript {0} - # env: - # LINTR_ERROR_ON_LINT: ${{ inputs.lintr_error_on_lint }} \ No newline at end of file diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml deleted file mode 100644 index 681ea6e..0000000 --- a/.github/workflows/deps.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: Dependencies 📄 - -on: - pull_request: - types: - - opened - - synchronize - - reopened - - ready_for_review - branches: - - main - push: - branches: - - main - workflow_call: - inputs: - dep_path: - description: Path of the dependency file. - required: false - type: string - default: "dependencies.yml" - - -concurrency: - group: dependencies-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - dependencies: - name: ${{ vars.CI_IMAGE }} - runs-on: ubuntu-latest - container: - image: ${{ vars.CI_IMAGE }} - - steps: - - name: Checkout project ⬇️ - uses: actions/checkout@v4 - - - name: Normalize variables 📏 - run: | - dep_path="${{ inputs.dep_path }}" - echo "dep_path=${dep_path:-'dependencies.yml'}" >> $GITHUB_ENV - shell: bash - - - name: Install package dependencies 📄 - run: | - if (file.exists(${{ env.dep_path }})) { - repos <- yaml::yaml.load(readLines(${{ env.dep_path }}))$dependencies |> - sapply(function(x) x$repo) - if(repos |> length() > 0) { - repos |> - pak::pak(dependencies = TRUE, ask = FALSE, upgrade = FALSE) - } - } - shell: Rscript {0} -