Data types: geometry (Postgres), geography (MSSql) #81
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: ci | |
on: [push, workflow_dispatch] | |
jobs: | |
install_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Cache node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
test_mysql: | |
runs-on: ubuntu-latest | |
needs: install_build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Test MySQL 5 | |
run: npm run test-mysql | |
env: | |
DOCKER_MYSQL_TAG: 5 | |
- name: Test MySQL 8 | |
run: npm run test-mysql | |
env: | |
DOCKER_MYSQL_TAG: 8 | |
test_postgres: | |
runs-on: ubuntu-latest | |
needs: install_build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Test Postgres 11 | |
run: npm run test-postgres | |
env: | |
DOCKER_POSTGRES_TAG: 11 | |
- name: Test Postgres 14 | |
run: npm run test-postgres | |
env: | |
DOCKER_POSTGRES_TAG: 14 | |
- name: Test Postgres 16 | |
run: npm run test-postgres | |
env: | |
DOCKER_POSTGRES_TAG: 16 | |
test_mariadb: | |
runs-on: ubuntu-latest | |
needs: install_build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Test MariaDB 10 | |
run: npm run test-mariadb | |
env: | |
DOCKER_MARIADB_TAG: 10 | |
- name: Test MariaDB 11 | |
run: npm run test-mariadb | |
env: | |
DOCKER_MARIADB_TAG: 11 | |
test_mssql: | |
runs-on: ubuntu-latest | |
needs: install_build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Test MSSQL 2019 | |
run: npm run test-mssql | |
env: | |
DOCKER_MSSQL_TAG: 2019-latest | |
- name: Test MSSQL 2022 | |
run: npm run test-mssql | |
env: | |
DOCKER_MSSQL_TAG: 2022-latest | |
test_sqlite: | |
runs-on: ubuntu-latest | |
needs: install_build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Test SQLite | |
run: npm run test-sqlite | |
publish: | |
runs-on: ubuntu-latest | |
needs: [test_mysql, test_postgres, test_mariadb, test_mssql, test_sqlite] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Build | |
run: npm run build | |
- name: Publish | |
# if: contains(github.ref, 'release') # Tag commit with 'release' string to publish | |
run: | | |
npm set registry "https://registry.npmjs.org" | |
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_PUBLISH_TOKEN }} | |
npm publish |