fix: remove db connection #556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Install and test 🔧 | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- run: sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
- run: sudo apt update && sudo apt install gdal-bin && sudo apt install libgdal-dev | |
- run: gdalinfo --version | |
- run: npm ci | |
- run: npm install gdal-async --build-from-source --shared_gdal | |
- run: npm run test | |
prepare_matrix: | |
needs: test | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: './' | |
persist-credentials: false | |
- id: set-matrix | |
run: | | |
JSON=$(cat ./src/packagesToBuild.json) | |
echo "::set-output name=matrix::${JSON}" | |
test_build: | |
needs: prepare_matrix | |
strategy: | |
matrix: | |
workers: ${{fromJson(needs.prepare_matrix.outputs.matrix)}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Docker Buildx 🔧 | |
uses: docker/setup-buildx-action@v1 | |
- name: Test docker image ${{ matrix.workers_names }} 🔧 | |
uses: docker/build-push-action@v2 | |
with: | |
file: ./src/${{ matrix.workers }}/Dockerfile | |
push: false | |
tags: ghcr.io/${{ github.repository_owner }}/mqm-worker/${{ matrix.workers }}:latest | |
- name: Clean cache 🧹 | |
uses: AutoModality/action-clean@v1 |