diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bc144b125e..20c527ba09 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: name: Run linters runs-on: ubuntu-latest steps: - - name: Check out Git repository + - name: โฌ‡๏ธ Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Verify Node version pins match .nvmrc run: | @@ -41,46 +41,38 @@ jobs: v=$(grep -oE '"node":[[:space:]]*"[0-9]+\.[0-9]+\.[0-9]+"' eas.json | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | sort -u) check "eas.json" "$v" exit $rc - - name: Install node + - name: ๐Ÿ”ง Setup Node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: .nvmrc cache: yarn - - name: Yarn install - uses: Wandalen/wretry.action@master - with: - command: yarn --frozen-lockfile - attempt_limit: 3 - attempt_delay: 2000 - - name: Lint check + - name: โš™๏ธ Install dependencies + run: yarn install --frozen-lockfile + - name: ๐Ÿง Lint check run: yarn lint - - name: Lint lockfile + - name: ๐Ÿ”’ Lint lockfile run: yarn lockfile-lint - - name: Prettier check + - name: ๐Ÿ’… Prettier check run: yarn prettier --check . - - name: Check & compile i18n + - name: ๐Ÿ“ Check & compile i18n run: yarn intl:build - - name: Type check + - name: โŒจ๏ธ Type check run: yarn typecheck testing: name: Run tests runs-on: ubuntu-latest steps: - - name: Check out Git repository + - name: โฌ‡๏ธ Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Install node + - name: ๐Ÿ”ง Setup Node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: .nvmrc cache: yarn - - name: Yarn install - uses: Wandalen/wretry.action@master - with: - command: yarn --frozen-lockfile - attempt_limit: 3 - attempt_delay: 2000 - - name: Check & compile i18n + - name: โš™๏ธ Install dependencies + run: yarn install --frozen-lockfile + - name: ๐Ÿ“ Check & compile i18n run: yarn intl:build - - name: Run tests + - name: ๐Ÿƒ Run tests run: | NODE_ENV=test yarn test --forceExit diff --git a/.github/workflows/nightly-update-source-languages.yaml b/.github/workflows/nightly-update-source-languages.yaml index c62ebdae07..efedfc06f8 100644 --- a/.github/workflows/nightly-update-source-languages.yaml +++ b/.github/workflows/nightly-update-source-languages.yaml @@ -15,7 +15,7 @@ jobs: contents: write steps: - - name: Check out Git repository + - name: โฌ‡๏ธ Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ssh-key: ${{secrets.GH_ACTION_DEPLOY_KEY}} @@ -24,20 +24,16 @@ jobs: with: node-version-file: .nvmrc cache: yarn - - name: Yarn install - uses: Wandalen/wretry.action@master - with: - command: yarn --frozen-lockfile - attempt_limit: 3 - attempt_delay: 2000 - - name: Extract language strings + - name: โš™๏ธ Install dependencies + run: yarn install --frozen-lockfile + - name: ๐Ÿงต Extract language strings run: yarn intl:extract - - name: Create commit + - name: โœ๏ธ Create commit uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0 with: commit_message: Nightly source-language update file_pattern: ./src/locale/locales/en/messages.po - - name: Push source lang to Crowdin + - name: ๐Ÿง‘โ€๐Ÿง‘โ€๐Ÿง’โ€๐Ÿง’ Push source lang to Crowdin uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 # v2.16.2 with: upload_sources: true diff --git a/.github/workflows/verify-yarn-lock.yml b/.github/workflows/verify-yarn-lock.yml index ea88efad36..d331c55de7 100644 --- a/.github/workflows/verify-yarn-lock.yml +++ b/.github/workflows/verify-yarn-lock.yml @@ -31,13 +31,8 @@ jobs: BASE_REF: ${{ github.base_ref }} run: git show "origin/$BASE_REF:yarn.lock" > yarn.lock - - name: Yarn install - uses: Wandalen/wretry.action@master - with: - # Fine to skip scripts since we don't run any code - command: yarn install --ignore-scripts - attempt_limit: 3 - attempt_delay: 2000 + - name: โš™๏ธ Install dependencies + run: yarn install --ignore-scripts - name: Verify yarn.lock run: |