Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/chech-duplicates-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ jobs:
NUMBER_PULL=$(echo "$PR_JSON" | jq -r '.[0].number')
labels=$(gh pr view $NUMBER_PULL --repo ovh/manager --json labels --jq '.labels[].name')

if echo "$labels" | grep -wq "translation required "; then
if echo "$labels" | grep -wq "translation required"; then
echo "✅ Translation required: Check the duplicate translation pls!..."

SHOULD_CONTINUE=true
echo "should_continue<<EOF" >> $GITHUB_OUTPUT
echo "$SHOULD_CONTINUE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
else
echo "❌ Translation label does not exist, exit..."
SHOULD_CONTINUE=false
Expand All @@ -56,8 +59,12 @@ jobs:
if: steps.gate.outputs.should_continue == 'true'
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
if: steps.gate.outputs.should_continue == 'true'
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,42 @@ on:
branches-ignore: [master, develop]
pull_request:
branches: [master, develop]

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
# Checkout the code and include all commit history
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

# Setup Node.js 22.x environment
- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22
- name: Restore/create node_modules cache

# Restore and cache node_modules and yarn.lock related cache
- name: Restore node_modules cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install repository
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

# Install dependencies only if necessary (cache hit will skip)
- name: Install dependencies
run: |
yarn install --frozen-lockfile

# Lint the code base
- name: Lint Code Base
run: |
yarn lint
12 changes: 9 additions & 3 deletions .github/workflows/run-bdd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 22
- name: Restore/create node_modules cache
# Restore and cache node_modules and yarn.lock related cache
- name: Restore node_modules cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install repository
run: yarn install --frozen-lockfile
- name: Build covered packages and dependencies
Expand Down
Loading