From 880961d4a92c7a29a5492ea74d4922f361d517d0 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sun, 14 Jul 2024 20:35:48 +0200 Subject: [PATCH] run tests --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..bede744c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Test + +on: + push: ~ + +jobs: + test: + name: Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Get Date + id: get-date + shell: bash + run: | + echo "date=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT + + - name: Cache data + uses: actions/cache@v4 + id: cache-data + with: + path: | + data/germany.osm.pbf + data/filtered/germany.osm.pbf + key: ${{ runner.os }}-data-${{ steps.get-date.outputs.date }}-germany + + - name: Download Germany + if: ${{ steps.cache.outputs.cache-hit != 'true' }} + run: | + curl --location --fail --output data/germany.osm.pbf https://download.geofabrik.de/europe/germany-latest.osm.pbf