Skip to content

Change to update to see if username and password is picked up #56

Change to update to see if username and password is picked up

Change to update to see if username and password is picked up #56

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@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- 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
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@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run push