BMayhew / my-service

An example of using github actions to kick off test automation. This is the main application under test while the tests live in a different repo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository Dispatch Example (Service Source Repo)

The build-deploy.yml file is the job that would get run when the service is updated.

The final step is what calls the test repo and kicks off a test github action.

Dispatch an event to a remote repository using a repo scoped Personal Access Token (PAT).

      - name: Kick Off Playwright Test Job
        uses: peter-evans/repository-dispatch@v2
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: bmayhew/my-tests
          event-type: run-my-tests
          client-payload: '{"github": ${{ toJson(github) }}}'

About

An example of using github actions to kick off test automation. This is the main application under test while the tests live in a different repo.