From 1c5614b6da01d5418715fe7c8cded335fe7ed937 Mon Sep 17 00:00:00 2001 From: alexeh Date: Sat, 11 May 2024 08:04:05 +0300 Subject: [PATCH] Add api e2e tests basic workflow --- .github/workflows/api-tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/api-tests.yml diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml new file mode 100644 index 00000000..1c898fa4 --- /dev/null +++ b/.github/workflows/api-tests.yml @@ -0,0 +1,31 @@ +name: API Tests + +on: + push: + paths: + - 'api/**' + + workflow_dispatch: + + +jobs: + api-tests-e2e: + name: API E2E Tests + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js 20.10 + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + - name: Install API dependencies + working-directory: api + run: pnpm install + + - name: Run API E2E tests + working-directory: api + run: pnpm test:e2e