chore: remove i18n content for old locales (#1336) #5125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI - Cypress (e2e) tests | |
| on: | |
| push: | |
| branches-ignore: | |
| - renovate/** | |
| pull_request: | |
| jobs: | |
| cypress-run: | |
| name: E2E | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| browsers: [chrome, firefox] | |
| languages: [english, chinese, espanol] | |
| env: | |
| BUILD_LANG: ${{ matrix.languages }} | |
| CHINESE_GHOST_API_URL: ${{ secrets.CI_CHINESE_GHOST_API_URL }} | |
| CHINESE_GHOST_API_VERSION: ${{ secrets.CI_CHINESE_GHOST_API_VERSION }} | |
| CHINESE_GHOST_CONTENT_API_KEY: ${{ secrets.CI_CHINESE_GHOST_CONTENT_API_KEY }} | |
| ESPANOL_GHOST_API_URL: ${{ secrets.CI_ESPANOL_GHOST_API_URL }} | |
| ESPANOL_GHOST_API_VERSION: ${{ secrets.CI_ESPANOL_GHOST_API_VERSION }} | |
| ESPANOL_GHOST_CONTENT_API_KEY: ${{ secrets.CI_ESPANOL_GHOST_CONTENT_API_KEY }} | |
| HASHNODE_API_URL: api_url_from_hashnode_dashboard | |
| ENGLISH_HASHNODE_HOST: host_from_hashnode_dashboard | |
| ADS_ENABLED: true | |
| GOOGLE_ADSENSE_DATA_AD_CLIENT: ca-pub-1234567890 | |
| GOOGLE_ADSENSE_DATA_AD_SLOT: 1234567890 | |
| POSTS_PER_PAGE: ${{ secrets.POSTS_PER_PAGE }} | |
| SITE_DOMAIN: localhost:8080 | |
| LOCALE_FOR_UI: ${{ matrix.languages }} | |
| LOCALE_FOR_GHOST: ${{ matrix.languages }} | |
| steps: | |
| - name: Checkout source files | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Start Ghost containers | |
| run: npm run start:containers | |
| - name: Start CI server and run Cypress | |
| uses: cypress-io/github-action@v6 | |
| with: | |
| start: npm run start:ci:${{ matrix.languages }} | |
| wait-on: http://localhost:8080 | |
| wait-on-timeout: 1200 | |
| browser: ${{ matrix.browsers }} | |
| headless: true | |
| spec: cypress/e2e/${{ matrix.languages }}/**/* | |
| - name: Stop Ghost containers | |
| run: npm run stop:containers |