Revert test command #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Workflow- Elastic Synthetics With Svelte Replicator | |
on: | |
push: | |
branches: [main, master] | |
jobs: | |
test: | |
env: | |
NODE_ENV: development | |
REPLICATR_USERNAME: ${{ secrets.REPLICATR_USERNAME }} | |
REPLICATR_PASSWORD: ${{ secrets.REPLICATR_PASSWORD }} | |
SYNTHETICS_JUNIT_FILE: junit-synthetics.xml | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm start & | |
- run: "npm install @elastic/synthetics && npx @elastic/synthetics . --reporter=junit" | |
working-directory: ./apps/synthetics-replicator-tests/journeys | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: '**/junit-*.xml' | |
check_name: Elastic Synthetics Tests | |
push: | |
env: | |
NODE_ENV: production | |
REPLICATR_USERNAME: ${{ secrets.REPLICATR_USERNAME }} | |
REPLICATR_PASSWORD: ${{ secrets.REPLICATR_PASSWORD }} | |
SYNTHETICS_API_KEY: ${{ secrets.SYNTHETICS_API_KEY }} | |
needs: test | |
defaults: | |
run: | |
working-directory: ./apps/synthetics-replicator-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run push |