Skip to content

Translations: Add Turkish and German #15

Translations: Add Turkish and German

Translations: Add Turkish and German #15

Workflow file for this run

name: Statoscope Bundle Analytics
on:
pull_request:
branches:
- '*'
jobs:
install:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTPS authentication
uses: GuillaumeFalourd/SSH-to-HTTPS@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Cache results
uses: actions/cache@v3
id: cache-results
with:
path: |
node_modules
key: ${{ github.sha }}
statoscope:
needs:
- install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Reconfigure git to use HTTPS authentication
uses: GuillaumeFalourd/SSH-to-HTTPS@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore cache
uses: actions/cache@v3
id: restore-cache
with:
path: |
node_modules
key: ${{ github.sha }}
- name: Build
run: npm run build:production
- name: Download reference statistics
uses: dawidd6/action-download-artifact@v2
with:
workflow: statoscope-upload-reference-statistics.yml
workflow_conclusion: success
name: statoscope-reference
path: ./
continue-on-error: true
- name: Prepare statoscope input
run: mv public/statoscope-build-statistics.json input.json; mv statoscope-reference.json reference.json
- name: Validate
run: npm run statoscope:validate-diff
- name: Query stats
if: "github.event_name == 'pull_request'"
run: cat .github/workflows/statoscope-comment.jora | npx --no-install @statoscope/cli query --input input.json --input reference.json > statoscope-result.json
- name: Hide bot comments
uses: int128/hide-comment-action@v1
- name: Comment PR
if: "github.event_name == 'pull_request'"
uses: actions/[email protected]
with:
script: |
const createStatoscopeComment = require('./dev/statoscopeCreateComment');
await createStatoscopeComment({ github, context, core })
- name: Cleanup
run: rm input.json; rm reference.json