diff --git a/.github/workflows/benchmark-cloud.yml b/.github/_workflows_/benchmark-cloud.yml similarity index 100% rename from .github/workflows/benchmark-cloud.yml rename to .github/_workflows_/benchmark-cloud.yml diff --git a/.github/workflows/benchmark-cy.yml b/.github/_workflows_/benchmark-cy.yml similarity index 100% rename from .github/workflows/benchmark-cy.yml rename to .github/_workflows_/benchmark-cy.yml diff --git a/.github/workflows/e2e-config-esm-cjs.yml b/.github/_workflows_/e2e-config-esm-cjs.yml similarity index 100% rename from .github/workflows/e2e-config-esm-cjs.yml rename to .github/_workflows_/e2e-config-esm-cjs.yml diff --git a/.github/workflows/e2e-config-esm-js.yml b/.github/_workflows_/e2e-config-esm-js.yml similarity index 100% rename from .github/workflows/e2e-config-esm-js.yml rename to .github/_workflows_/e2e-config-esm-js.yml diff --git a/.github/workflows/e2e-config-esm-mjs.yml b/.github/_workflows_/e2e-config-esm-mjs.yml similarity index 100% rename from .github/workflows/e2e-config-esm-mjs.yml rename to .github/_workflows_/e2e-config-esm-mjs.yml diff --git a/.github/workflows/e2e-config-noesm-js.yml b/.github/_workflows_/e2e-config-noesm-js.yml similarity index 100% rename from .github/workflows/e2e-config-noesm-js.yml rename to .github/_workflows_/e2e-config-noesm-js.yml diff --git a/.github/workflows/e2e-exports.yml b/.github/_workflows_/e2e-exports.yml similarity index 100% rename from .github/workflows/e2e-exports.yml rename to .github/_workflows_/e2e-exports.yml diff --git a/.github/workflows/e2e-monorepo.yml b/.github/_workflows_/e2e-monorepo.yml similarity index 100% rename from .github/workflows/e2e-monorepo.yml rename to .github/_workflows_/e2e-monorepo.yml diff --git a/.github/workflows/e2e-smoke-api.yml b/.github/_workflows_/e2e-smoke-api.yml similarity index 100% rename from .github/workflows/e2e-smoke-api.yml rename to .github/_workflows_/e2e-smoke-api.yml diff --git a/.github/workflows/e2e-smoke-component.yml b/.github/_workflows_/e2e-smoke-component.yml similarity index 100% rename from .github/workflows/e2e-smoke-component.yml rename to .github/_workflows_/e2e-smoke-component.yml diff --git a/.github/_workflows_/e2e-smoke-linux.yml b/.github/_workflows_/e2e-smoke-linux.yml new file mode 100644 index 0000000..91fdfa6 --- /dev/null +++ b/.github/_workflows_/e2e-smoke-linux.yml @@ -0,0 +1,58 @@ +name: e2e-smoke-linux + +on: + push: + +jobs: + e2e-smoke: + if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" + runs-on: ubuntu-latest + env: + DEBUG: currents:* + + services: + director: + image: agoldis/sorry-cypress-director + ports: + - 1234:1234 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16" + + - name: Install alternative cypress binaries + run: CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx cypress install --force + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Link monorepo packages + run: npm install + + - name: Run Cypress with cypress-cloud + working-directory: ./examples/webapp + env: + CURRENTS_API_URL: http://localhost:1234 + run: > + npx cypress-cloud run + --record + --parallel + --key some-key + --browser chrome + --tag smoke,linux + --spec "./cypress/e2e_smoke/*.spec.js" + --ci-build-id "smoke-linux-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}" + + - name: Run in Offline mode + working-directory: ./examples/webapp + run: > + npx cypress-cloud run + --record false + --browser chrome + --tag smoke,linux + --spec "./cypress/e2e_smoke/*.spec.js" diff --git a/.github/workflows/lint.yml b/.github/_workflows_/lint.yml similarity index 100% rename from .github/workflows/lint.yml rename to .github/_workflows_/lint.yml diff --git a/.github/workflows/unit-tests.yml b/.github/_workflows_/unit-tests.yml similarity index 100% rename from .github/workflows/unit-tests.yml rename to .github/_workflows_/unit-tests.yml