1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-31 01:57:21 +01:00

Adds log message using new syntax (#1724)

* Adds log message using new syntax
This commit is contained in:
Amir Raminfar
2022-04-21 10:27:51 -07:00
committed by GitHub
parent 89e5bee174
commit abf0507307
4 changed files with 15 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
on:
push:
branches:
- "**"
- master
pull_request:
branches:
- master
@@ -41,7 +41,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Build images
run: docker-compose -f e2e/docker-compose.yml build
- name: Show GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set commit message for push
if: github.event_name == 'push'
run: echo "GIT_LOG_MESSAGE=$(git log -1 --pretty=%B ${{env.GITHUB_SHA}})" >> $GITHUB_ENV
- name: Set commit message for pull request
if: github.event_name == 'pull_request'
run: echo "GIT_LOG_MESSAGE=$(git log -1 --pretty=%B ${{github.event.pull_request.head.sha}})" >> $GITHUB_ENV
- name: Run tests
run: docker-compose -f e2e/docker-compose.yml up --build --force-recreate --exit-code-from cypress

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -33,7 +33,5 @@ Cypress.Commands.add("removeDates", () => {
});
Cypress.Commands.add("replaceSkippedElements", () => {
cy.window().then((win) =>
win.document.querySelectorAll("[data-ci-skip]").forEach((el) => (el.style.visibility = "hidden"))
);
cy.window().then((win) => win.document.querySelectorAll("[data-ci-skip]").forEach((el) => el.remove()));
});

View File

@@ -37,6 +37,7 @@ services:
- COMMIT_INFO_BRANCH=${GITHUB_REF_NAME}
- COMMIT_INFO_AUTHOR=${GITHUB_ACTOR}
- COMMIT_INFO_SHA=${GITHUB_SHA}
- COMMIT_INFO_MESSAGE=${GIT_LOG_MESSAGE}
- COMMIT_INFO_REMOTE=https://github.com/amir20/dozzle
command: cypress run --record
depends_on: