Skip to content

Commit

Permalink
add translations job
Browse files Browse the repository at this point in the history
  • Loading branch information
piyalbasu committed Jun 27, 2023
1 parent cfd93d1 commit 0686749
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
name: Translate and Test
on: [pull_request]
jobs:
test-ci:
name: test
runs-on: ubuntu-latest
steps:
- run: yarn install
- run: yarn build:freighter-api
- run: yarn test:ci
build-translations:
needs: test-ci
name: Build translation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.14.0
- run: yarn install
- run: yarn build:freighter-api
test-ci:
needs: build-translations
name: test
runs-on: ubuntu-latest
steps:
- run: yarn test:ci
- name: Run translation job
run: |
yarn && yarn build:freighter-api && yarn build:extension:translations
- name: Verify diff
id: verify_diff
run: |
git diff --quiet || echo "::set-output name=new_translations_exist::true"
- name: Commit files
if: steps.verify_diff.outputs.new_translations_exist == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Add translations" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}
2 changes: 1 addition & 1 deletion extension/src/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "popup/helpers/localizationConfig";
// Import global CSS from Stellar Design System
import "@stellar/design-system/build/styles.min.css";

console.log("test");
console.log("tesst");

// eslint-disable-next-line react/jsx-filename-extension
ReactDOM.render(<App />, document.getElementById("root"));

0 comments on commit 0686749

Please sign in to comment.