Skip to content

Commit

Permalink
Set core.autocrlf on windows GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Jun 19, 2024
1 parent 2ed94fb commit 30784e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- name: Configure git
if: runner.os == 'Windows'
run: git config --global core.autocrlf false

- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2
Expand Down
11 changes: 0 additions & 11 deletions tests/testthat/test-gps_traces.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ test_that("osm_get_points_gps works", {


test_that("edit gpx works", {
skip_on_os("windows") # TODO: issue in httptest2? different mock file name in windows
# https://github.com/nealrichardson/httptest2/issues/42
# Error in `stop_request(req)`: An unexpected request was made:
# POST https://master.apis.dev.openstreetmap.org/api/0.6/gpx/create Multipart form:
# file = File: f42901c4e0e077e532e417da5224df67
# description = Test create gpx with osmapiR.
# tags = testing, osmapiR
# visibility = private
#
# Expected mock file: osm.org/api/0.6/gpx/create-b3940a-POST.*

gpx_path <- test_path("sample_files", "sample.gpx")

with_mock_dir("mock_edit_gpx", {
Expand Down

0 comments on commit 30784e2

Please sign in to comment.