Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CI for testing #52

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/test-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: test-setup

on:
push:
branches: [test-setup-ci]

jobs:
run-setup-on-ubuntu:
name: Run Setup on Ubuntu
runs-on: ubuntu-24.04
steps:
# - name: Install packages
# run: |
# sudo apt-get update
# sudo apt-get install -y postgresql wait-for-it

# - name: Start PostgreSQL service
# run: |
# sudo service postgresql start
# sudo -u postgres psql -c "CREATE USER myuser WITH PASSWORD 'mypassword';"
# sudo -u postgres psql -c "CREATE DATABASE mydatabase OWNER myuser;"

# - name: Wait for PostgreSQL
# run: wait-for-it localhost:5432 -t 30 -- echo "PostgreSQL is ready!"

# - name: Run SQL commands
# run: |
# PGPASSWORD=mypassword psql -h localhost -U myuser -d mydatabase -c "SELECT 'Hello, PostgreSQL!' AS greeting;"
- name: Checkout main repo
uses: actions/checkout@v3

- name: Checkout osm2pgsql
uses: actions/checkout@v3
with:
repository: osm2pgsql-dev/osm2pgsql
ref: 2.0.0
path: /home/runner/work/osm-feature-info/osm-feature-info/osm2pgsql

- name: Checkout themepark
uses: actions/checkout@v3
with:
repository: osm2pgsql-dev/osm2pgsql-themepark
path: /home/runner/work/osm-feature-info/osm-feature-info/osm2pgsql-themepark

- name: Checkout pg_featureserv
uses: actions/checkout@v3
with:
repository: CrunchyData/pg_featureserv
path: /home/runner/work/osm-feature-info/osm-feature-info/pg_featureserv

- run: pwd
- run: ls

Loading