Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ab-testing-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
jobs:
checks:
runs-on: ubuntu-latest
name: Checks
defaults:
run:
working-directory: ab-testing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🧪 Deploy CODE AB Testing Config
name: 🧪 AB testing CI (CODE)

permissions:
contents: read
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/ab-testing-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,31 @@ on:
pull_request:
paths:
- 'ab-testing/**'
- '.github/workflows/ab-testing-*.yml'
push:
branches:
- main
paths:
- 'ab-testing/**'
- '.github/workflows/ab-testing-*.yml'

jobs:
checks:
ci:
name: CI
uses: ./.github/workflows/ab-testing-checks.yml
with:
save_build_artifact: true
secrets:
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_PROD_AB_TESTING_CONFIG }}
FASTLY_API_TOKEN: ${{ secrets.FASTLY_PROD_API_TOKEN }}

deploy:
name: Deploy
needs: ci
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/ab-testing-deploy.yml
with:
stage: prod
secrets:
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_CODE_AB_TESTING_CONFIG }}
FASTLY_API_TOKEN: ${{ secrets.FASTLY_CODE_API_TOKEN }}
FASTLY_AB_TESTING_CONFIG: ${{ secrets.FASTLY_PROD_AB_TESTING_CONFIG }}
FASTLY_API_TOKEN: ${{ secrets.FASTLY_PROD_API_TOKEN }}
31 changes: 0 additions & 31 deletions .github/workflows/ab-testing-deploy-prod.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/ab-testing-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
pull_request:
paths:
- 'ab-testing/**'
- '.github/workflows/ab-testing-*.yml'
push:
branches:
- main
paths:
- 'ab-testing/**'
- '.github/workflows/ab-testing-*.yml'

jobs:
build-ui:
Expand Down
Loading