From 81db2d5cea168d3d3a08cf38055e17ac05b29478 Mon Sep 17 00:00:00 2001 From: Mariana Souza Date: Mon, 16 Dec 2024 14:55:28 -0500 Subject: [PATCH] Add GH ci for tests --- .github/workflows/test.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000000..598cb55bad9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,44 @@ +name: Prebid.js CI + +on: + push: + branches: + - master + pull_request_target: + branches: + - master + + +jobs: + setup: + name: Setup + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + - name: Install dependencies + run: npm install + - name: Install gulp cli + run: sudo npm install -g gulp-cli + unit-test: + name: Run unit tests + runs-on: ubuntu-22.04 + needs: setup + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run unit tests + run: gulp test --browserstack --nolintfix + e2e-test: + name: Run e2e tests + runs-on: ubuntu-22.04 + needs: setup + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run e2e tests + run: gulp e2e-test