Skip to content

[Сurrency] add THB currency #55

[Сurrency] add THB currency

[Сurrency] add THB currency #55

Workflow file for this run

name: Statoscope Bundle Analytics
on:
pull_request:
branches:
- '*'
jobs:
install:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- name: Checkout
uses: actions/checkout@v4
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@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Cache results
uses: actions/cache@v4
id: cache-results
with:
path: |
node_modules
key: ${{ github.sha }}
statoscope:
needs:
- install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- name: Checkout
uses: actions/checkout@v4
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@v4
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/github-script@v6.0.0
with:
script: |
const createStatoscopeComment = require('./dev/statoscopeCreateComment');
await createStatoscopeComment({ github, context, core })
- name: Cleanup
run: rm input.json; rm reference.json