Skip to main content

Github Actions

Example using te-runner in Github Actions

.github/workflows/testevolve.yml
  name: TestEvolve Regression Tests

jobs:
build:
name: TestEvolve Regression in te-runner
runs-on: ubuntu-latest
env:
testevolve-dir: <your/path/to/testevolve/repo>
TE_HALO_AUTH_TOKEN: ${{ secrets.TESTEVOLVE_DASHBOARD_API_KEY }}

container:
image: gcr.io/test-evolve-prod/spark/te-runner:1.2.0
options: --user 1001

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Start Browser
run: |
sh /usr/local/bin/startx.sh &
- name: Set npm registry
working-directory: ${{env.testevolve-dir}}
run: |
npm config set @testevolve:registry https://oxy.jfrog.io/artifactory/api/npm/spark-js
- name: Install dependencies
working-directory: ${{env.testevolve-dir}}
run: |
npm i
- name: Run tests
working-directory: ${{env.testevolve-dir}}
run: |
npm test