Skip to content

Commit

Permalink
ci: organize step names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Souza committed Jun 7, 2022
1 parent 1ab37a7 commit 667b317
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
Xvfb -screen 0 1024x768x24 :99 &
for i in $(seq 1 5); do (docker exec mongo mongo rocketchat --eval 'db.dropDatabase()') && npm run testci -- --test=testapi && s=0 && break || s=$? && sleep 1; done; (exit $s)
- name: E2E Test UI 🎭
- name: 🎭 E2E Test UI
env:
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
Expand All @@ -248,26 +248,26 @@ jobs:
Xvfb -screen 0 1024x768x24 :99 &
docker exec mongo mongo rocketchat --eval 'db.dropDatabase()' && npm run testci -- --test=test:playwright
- name: Store playwright-test-trace 🎭
- name: 🎭 Store playwright-test-trace
uses: actions/upload-artifact@v2
if: failure()
with:
name: playwright-test-trace
path: ./apps/meteor/tests/e2e/test-failures*

- name: Store playwright-coverage 🎭
- name: 🎭 Store playwright-coverage
uses: actions/upload-artifact@v2
with:
name: playwright-coverage
path: ./apps/meteor/coverage

- name: Extract e2e:coverage 🎭
- name: 🎭 Extract e2e:coverage
run: |
NYC_OUTPUT=$(yarn test:nyc)
COVERAGE_REPORTS=$(grep -o '[^ ]*%' <<< "$NYC_OUTPUT")
echo "REPORT_STATEMENTS=$(sed -n 1p <<< "$COVERAGE_REPORTS")" >> $GITHUB_ENV
- name: Publish e2e:coverage badge 🎭
- name: 🎭 Publish e2e:coverage badge
uses: RocketChat/ghpages-dynamic-badges-action
with:
label: "e2e:coverage"
Expand Down Expand Up @@ -359,7 +359,7 @@ jobs:
for i in $(seq 1 5); do (docker exec mongo mongo rocketchat --eval 'db.dropDatabase()') && npm run testci -- --enterprise --test=testapi && s=0 && break || s=$? && sleep 1; done; (exit $s)
- name: E2E UI Test 🎭
- name: 🎭 E2E UI Test
env:
TEST_MODE: 'true'
MONGO_URL: mongodb://localhost:27017/rocketchat
Expand All @@ -377,26 +377,26 @@ jobs:
docker exec mongo mongo rocketchat --eval 'db.dropDatabase()' && npm run testci -- --enterprise --test=test:playwright:ee
- name: Store playwright-test-trace 🎭
- name: 🎭 Store ee-playwright-test-trace
uses: actions/upload-artifact@v2
if: failure()
with:
name: ee-playwright-test-trace
path: ./apps/meteor/tests/e2e/test-failures*

- name: Store playwright-coverage 🎭
- name: 🎭 Store ee-playwright-coverage
uses: actions/upload-artifact@v2
with:
name: ee-playwright-coverage
path: ./apps/meteor/coverage

- name: Extract e2e:ee:coverage 🎭
- name: 🎭 Extract e2e:ee:coverage
run: |
NYC_OUTPUT=$(yarn test:nyc)
COVERAGE_REPORTS=$(grep -o '[^ ]*%' <<< "$NYC_OUTPUT")
echo "REPORT_STATEMENTS=$(sed -n 1p <<< "$COVERAGE_REPORTS")" >> $GITHUB_ENV
- name: Publish e2e:ee:coverage badge 🎭
- name: 🎭 Publish e2e:ee:coverage badge
uses: RocketChat/ghpages-dynamic-badges-action
with:
label: "e2e:ee:coverage"
Expand Down

0 comments on commit 667b317

Please sign in to comment.