Merge pull request #163 from ushkinaz/feat/update-pry-property-handling #943
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
| # This workflow will do a clean installation of Node dependencies, build the source code and run tests across different versions of Node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: Run Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main, next] | |
| pull_request: | |
| branches: [main, next] | |
| schedule: | |
| - cron: "55 */12 * * *" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [24] | |
| env: | |
| TRANSIFEX_SECRET: ${{ secrets.TRANSIFEX_SECRET }} | |
| TRANSIFEX_TOKEN: ${{ vars.TRANSIFEX_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| # Run scheduled tests on the latest version of the game, on push - on commited in all.meta.json | |
| - name: Fetch fixtures | |
| run: | | |
| pnpm fetch:builds | |
| if [ "$GITHUB_EVENT_NAME" == "schedule" ]; then | |
| pnpm fetch:fixtures:nightly | |
| else | |
| pnpm fetch:fixtures | |
| fi | |
| - name: Verify & Test | |
| run: pnpm test | |
| - name: Build | |
| env: | |
| SENTRY_DSN: ${{ vars.SENTRY_DSN }} | |
| run: pnpm build | |
| - name: Upload Translation Strings | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.TRANSIFEX_SECRET != '' | |
| run: pnpm i18n:push | |
| - name: Deploy 🚀 | |
| if: github.event_name == 'push' && false | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| accountId: 6f45d2e990c24e26aafd1513de56d82d | |
| projectName: cbn-guide | |
| directory: dist | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} |