diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml new file mode 100644 index 0000000..bb1344d --- /dev/null +++ b/.github/workflows/run-e2e-tests.yml @@ -0,0 +1,36 @@ +name: Run E2E Tests + +on: [push] + +jobs: + run-e2e-tests: + name: Run E2E Tests + runs-on: ubuntu-latest + + services: + postgres: + image: bitnami/postgresql + ports: + - 8080:5432 + env: + POSTGRESQL_USERNAME: docker + POSTGRESQL_PASSWORD: docker + POSTGRESQL_DATABASE: orange-db + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' + + - run: pnpm install + + - run: pnpm run pretest:e2e + - run: pnpm run test:e2e + + env: + DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public" diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml new file mode 100644 index 0000000..4059d91 --- /dev/null +++ b/.github/workflows/run-unit-tests.yml @@ -0,0 +1,22 @@ +name: Run Unit Tests + +on: [push] + +jobs: + run-unit-tests: + name: Run Unit Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' + + - run: pnpm install + + - run: pnpm run test \ No newline at end of file