Testing pushing Drizzle ORM files #24
This file contains hidden or 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: Sveltekit / Postgres CI/CD | |
| on: [push] | |
| jobs: | |
| Unit-Test-Actions: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| # Docker Hub image | |
| image: postgres | |
| # Provide the password for postgres | |
| env: | |
| POSTGRES_USER: "user_good" | |
| POSTGRES_PASSWORD: "pass_good" | |
| POSTGRES_DB: "default" | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| env: | |
| POSTGRES_USER: "user_good" | |
| POSTGRES_PASSWORD: "pass_good" | |
| POSTGRES_DB: "default" | |
| POSTGRES_HOST: "localhost" # No need to change | |
| POSTGRES_PORT: "5432" # No need to change | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: make install | |
| - run: make cypher | |
| - run: make migrations | |
| - run: make test | |
| - run: make lint |