Skip to content

Commit

Permalink
localize before test
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed Sep 30, 2024
1 parent 7e5a57c commit a7e5073
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/frontend-build-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,10 @@ jobs:
HUSKY: 0
run: yarn install --frozen-lockfile

# Lint and format:
# Lint:
- name: Lint
working-directory: frontend
run: yarn lint:check
- name: Format
working-directory: frontend
# TODO Reenable when https://github.com/webrecorder/browsertrix-cloud/issues/1618 is addressed
# run: yarn format:check
run: echo "yarn format:check disabled"

# Test:
- name: Unit tests
working-directory: frontend
run: yarn test

# Localize:
- name: Extract strings
Expand All @@ -62,12 +52,19 @@ jobs:
- name: Commit extracted strings
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply automatic changes to extracted localization strings
commit_message: Apply `localize:extract` changes
file_pattern: '**/*.xlf'
skip_fetch: true
skip_checkout: true
- name: Check localization build
working-directory: frontend
run: yarn localize:build

# Test:
- name: Unit tests
working-directory: frontend
run: yarn test

# Check build:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit a7e5073

Please sign in to comment.