Skip to content

Commit

Permalink
ci: Emojis for checks (#8872)
Browse files Browse the repository at this point in the history
* ci: Emojis for checks

* Update translation-check.yml

* Update daily.yml

* Update stale.yml

* Update stale.yml
  • Loading branch information
teolemon authored Aug 18, 2023
1 parent 3d70f76 commit a801922
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Daily tasks (cronjobs)"
name: "🕰️ Daily tasks (cronjobs)"

on:
schedule:
Expand Down Expand Up @@ -36,15 +36,15 @@ jobs:
environment: ${{ matrix.env }}
concurrency: ${{ matrix.env }}
steps:
- name: Set various variable for staging (net) deployment
- name: Set various variables for staging (.net) deployment
if: matrix.env == 'mongo-dev'
run: |
# deploy target
echo "SSH_HOST=10.1.0.200" >> $GITHUB_ENV
echo "SSH_PROXY_HOST=ovh1.openfoodfacts.org" >> $GITHUB_ENV
echo "SSH_USERNAME=off" >> $GITHUB_ENV
- name: Sync prod db data to dev MongoDB
- name: Sync production database data to the dev MongoDB
uses: appleboy/ssh-action@master
with:
host: ${{ env.SSH_HOST }}
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
concurrency: ${{ matrix.env }}
needs: dev-db-sync
steps:
- name: Set various variable for staging (net) deployment
- name: Set various variables for the staging (.net) deployment
if: matrix.env == 'mongo-dev'
run: |
# deploy target
Expand All @@ -98,4 +98,4 @@ jobs:
script: |
cd ${{ matrix.env }}
make refresh_product_tags
make restart_db
make restart_db
14 changes: 7 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: exit 0

lint:
name: NPM lint
name: 🕵️‍♀️ NPM lint
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
Expand All @@ -51,7 +51,7 @@ jobs:

# this will build the docker image and upload as an artifact for following jobs
build_backend:
name: Build backend dev image for tests
name: 🏗 Build backend dev image for tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -63,15 +63,15 @@ jobs:
uses: ishworkh/docker-image-artifact-upload@v1
with:
image: "openfoodfacts-server/backend:dev"
- name: rebuild taxonomies
- name: Rebuild taxonomies
# here we first restore dates from git for taxonomies to avoid build them all
# see https://stackoverflow.com/a/60984318/2886726
run: |
git ls-files taxonomies/ | xargs -I{} git log -1 --date=format:%Y%m%d%H%M.%S --format='touch -t %ad "{}"' "{}" | bash
make build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
check_perl:
name: Check perl
name: 🐪 Check Perl
needs: build_backend
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
Expand All @@ -95,7 +95,7 @@ jobs:
run: make check_perl

tests:
name: Perl unit tests
name: 🐪 Perl unit tests
needs: build_backend
runs-on: ubuntu-latest
steps:
Expand All @@ -122,7 +122,7 @@ jobs:
files: cover_db/codecov.json

tests_dev:
name: Test make dev
name: 🧪 Test make dev
needs: build_backend # only to avoid building taxonomies
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand All @@ -138,7 +138,7 @@ jobs:
run: |
make dev
make status
- name: test all is running
- name: Test all is running
run: make livecheck
- name: test clean
run: make hdown
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Stale issue handler"
name: "🌋 Stale issue handler"
on:
schedule:
- cron: "0 0 * * *"
Expand All @@ -10,7 +10,7 @@ jobs:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity.'
stale-issue-message: 'This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts '
days-before-stale: 90
days-before-close: -1
skip-stale-issue-message: true
2 changes: 1 addition & 1 deletion .github/workflows/translation-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Translations check
name: 🌐 Translations check

on:
pull_request:
Expand Down

0 comments on commit a801922

Please sign in to comment.