diff --git a/.github/workflows/web.test.yaml b/.github/workflows/web.test.yaml index 37cefcc..ef4ca57 100644 --- a/.github/workflows/web.test.yaml +++ b/.github/workflows/web.test.yaml @@ -6,24 +6,64 @@ on: branches: main jobs: - build: + smoke: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Setup Node.js environment + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install Packages + run: npm ci + - name: Run Test + run: npm run smoke + + regression_on_chrome: + needs: [smoke] + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: 18 - name: Install Dependencies - run: npm install + run: npm ci - name: Run Test run: npm run test - continue-on-error: true - - name: Generate Allure Repor - run: npm run report:ci + - name: Generate Allure Report + if: always() + run: npm run report + - name: Upload Allure Report to Artifact + if: always() + uses: actions/upload-artifact@v3 + with: + name: AllureReportChrome + path: ./allure-report + + regression_on_edge: + needs: [smoke] + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install Dependencies + run: npm ci + - name: Run Test + run: npm run test:edge + - name: Generate Allure Report + run: npm run report + if: always() - name: Upload Allure Report to Artifact + if: always() uses: actions/upload-artifact@v3 with: - name: AllureReport + name: AllureReportEdge path: ./allure-report \ No newline at end of file