Release v1.4.0 (#185) #41
Workflow file for this run
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: Run tests | |
| on: push | |
| jobs: | |
| # Label of the runner job | |
| test-job: | |
| env: | |
| PASSWEAVERAPI_PRISMA_URL: postgresql://postgres:postgres@localhost:5432/passweaver | |
| PASSWEAVER_AUTO_TEST: 1 | |
| # You must use a Linux environment when using service containers or container jobs | |
| runs-on: ubuntu-latest | |
| # Service containers to run with `runner-job` | |
| services: | |
| # Label used to access the service container | |
| postgres: | |
| # Docker Hub image | |
| image: postgres | |
| # Provide the password for postgres | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| # Maps tcp port 5432 on service container to the host | |
| - 5432:5432 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Generate Prisma code | |
| run: npx prisma generate | |
| - name: Create database | |
| run: npx prisma db push | |
| - name: Seed development data into database | |
| run: npx prisma db seed -- --environment development | |
| - name: Run PassweaverAPI | |
| run: npm start & | |
| - name: Run tests | |
| run: npm test | |