mirror of
https://github.com/prymitive/karma
synced 2026-05-19 04:26:41 +00:00
fix(demo): drop heroku tests
This commit is contained in:
committed by
Łukasz Mierzwa
parent
274b02e6e1
commit
78516a2fcf
3
.github/workflows/node-version.yml
vendored
3
.github/workflows/node-version.yml
vendored
@@ -32,9 +32,6 @@ jobs:
|
||||
- name: Regenerate ui package-lock.json
|
||||
run: cd ui && npm i
|
||||
|
||||
- name: Regenerate e2e package-lock.json
|
||||
run: cd ui/e2e && npm i
|
||||
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v4.1.3
|
||||
|
||||
55
.github/workflows/test.yml
vendored
55
.github/workflows/test.yml
vendored
@@ -513,58 +513,3 @@ jobs:
|
||||
tags: ${{ env.DOCKER_TAGS }}
|
||||
build-args: |
|
||||
VERSION=${{ env.VERSION }}
|
||||
|
||||
demo-deploy:
|
||||
name: Deploy demo app to Heroku
|
||||
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.10.0
|
||||
cache: 'npm'
|
||||
cache-dependency-path: 'ui/e2e/package-lock.json'
|
||||
|
||||
- name: Install Heroku CLI
|
||||
run: curl -s --connect-timeout 30 --fail https://cli-assets.heroku.com/install.sh | sh
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build --build-arg VERSION=$(make show-version) -t registry.heroku.com/karma-demo/web -f demo/Dockerfile .
|
||||
shell: bash
|
||||
|
||||
- name: Write .netrc
|
||||
run: |
|
||||
echo "machine api.heroku.com" >> $HOME/.netrc
|
||||
echo " login l.mierzwa@gmail.com" >> $HOME/.netrc
|
||||
echo " password ${HEROKU_API_KEY}" >> $HOME/.netrc
|
||||
env:
|
||||
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
|
||||
|
||||
- name: Login to Heroku
|
||||
run: echo "${HEROKU_API_KEY}" | docker login registry.heroku.com -u _ --password-stdin
|
||||
env:
|
||||
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
|
||||
|
||||
- name: Push docker image to Heroku
|
||||
run: docker push registry.heroku.com/karma-demo/web
|
||||
|
||||
- name: Trigger Heroku release
|
||||
run: /usr/local/bin/heroku container:release web --app karma-demo
|
||||
|
||||
- name: Run e2e test
|
||||
uses: nick-invision/retry@v2.8.1
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: make -C ui/e2e test
|
||||
|
||||
- name: Rollback on failure
|
||||
if: failure()
|
||||
run: /usr/local/bin/heroku releases:rollback --app karma-demo
|
||||
|
||||
Reference in New Issue
Block a user