mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
213e8950d3
* refactor: allow existing tsc errors * refactor: add missing component key * refactor: port login auth to TS/SWR * refactor: replace incorrect CREATE_TAG_TYPE with UPDATE_TAG_TYPE * refactor: fix AccessProvider permission mocks * refactor: add types to AccessContext * refactor: fix file extension * refactor: remove default export * refactor: remove unused IAddedUser interface * refactor: comment on the permissions prop * refactor: split auth hooks * feat: auth tests * fix: setup separate e2e tests * fix: naming * fix: lint * fix: spec path * fix: missing store * feat: add more tests Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
25 lines
923 B
YAML
25 lines
923 B
YAML
name: e2e:feature
|
|
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
|
on: [deployment_status]
|
|
jobs:
|
|
e2e:
|
|
# only runs this job on successful deploy
|
|
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
run: |
|
|
echo "$GITHUB_CONTEXT"
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Run Cypress
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
env: AUTH_TOKEN=${{ secrets.UNLEASH_TOKEN }},DEFAULT_ENV="development"
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
|
record: true
|
|
spec: cypress/integration/feature-toggle/feature.spec.js
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |