stadiamaps / pmtiles-rs

Rust implementation of PMTiles
Apache License 2.0
52 stars 8 forks source link

Use my new nginx action to set up nginx in CI #41

Open nyurik opened 1 month ago

nyurik commented 1 month ago

I think it will be a good fit for http testing: https://github.com/nyurik/action-setup-nginx

      - name: Run NGINX
        uses: nyurik/action-setup-nginx@v1.1
        id: nginx
        with: { port: '5412', output-unix-paths: 'yes' }

      - name: Copy static files
        run: cp -r tests/fixtures/* ${{ steps.nginx.outputs.html-dir }}

      - name: Test pmtiles
        run: |
          # Some code that accesses localhost:5412/myfile.pmtiles - assuming that's what in the test fixtures