Adding reference to auth github repo #61
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@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 | |
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm run push |