chore: e2e tests opt in

This commit is contained in:
Mo
2022-11-24 08:43:54 -06:00
parent 0d1e0d730d
commit 4661c6cb77
2 changed files with 5 additions and 5 deletions

View File

@@ -50,20 +50,20 @@ jobs:
run: yarn test
- name: Login to Docker Hub
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
if: "${{ contains(github.event.head_commit.message, 'run e2e') == true }}"
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish SNJS Docker image for E2E testing
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
if: "${{ contains(github.event.head_commit.message, 'run e2e') == true }}"
run: |
yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }}
docker push standardnotes/snjs:${{ github.sha }}
- name: Run E2E test suite
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
if: "${{ contains(github.event.head_commit.message, 'run e2e') == true }}"
uses: convictional/trigger-workflow-and-wait@v1.6.1
with:
owner: standardnotes
@@ -85,7 +85,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_TOKEN }}
- name: Publish SNJS Docker image as stable
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
if: "${{ contains(github.event.head_commit.message, 'run e2e') == true }}"
run: |
docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:latest
docker push standardnotes/snjs:latest