From cb216ae3d944068057592208cc970daa865f5f51 Mon Sep 17 00:00:00 2001 From: felipe Date: Mon, 10 Jul 2023 12:01:10 -0300 Subject: [PATCH] ci: E2E tests --- .github/workflows/run-e2e-tests.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/run-e2e-tests.yml diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml new file mode 100644 index 0000000..252dc56 --- /dev/null +++ b/.github/workflows/run-e2e-tests.yml @@ -0,0 +1,33 @@ +name: Run E2E Tests + +on: [pull_request] + +jobs: + run-e2e-tests: + name: Run E2E Tests + runs-on: ubuntu-latest + + services: + postgres: + image: bitnami/postgresql + ports: + - 5432:5432 + env: + POSTGRESQL_USERNAME: docker + POSTGRESQL_PASSWORD: docker + POSTGRESQL_DATABASE: apisolid + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - run: npm ci + + - run: npm run test:e2e + env: + JWR_SECRET: testing + DATABASE_URL: "postgresql://docker:docker@localhost:5432/apisolid?schema=public" \ No newline at end of file