/
githubmirror
/
immutable-js
Обзор
Документация
Войти
/
githubmirror
/
immutable-js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/output_diff.yml
62 строки
2 KB
dependabot[bot]
ci(deps): bump the github-actions group with 3 updates
04 авг 2026, 01:12
Не верифицирован
04 авг 2026, 01:12
99d7838
Код
Авторство
О чём код?
name: Output diff for TS files on: pull_request: branches: - main - init-migrate-to-ts # run only if there is ts files in the PR paths: - 'src/**/*.ts' jobs: diff: name: 'Output diff' runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: path: 'pr' - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.base.sha }} path: 'main' - uses: actions/setup-node@v7 with: node-version: '24' - uses: actions/cache@v6 with: path: ~/.npm key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.OS }}-node- - name: 'Install PR branch dependencies' run: npm ci working-directory: pr - name: 'Install main branch dependencies' run: npm ci working-directory: main - name: 'Build PR branch' run: npm run build working-directory: pr - name: 'Build main branch' run: npm run build working-directory: main - name: 'Execute prettier and remove ts-expect-error on PR dist' run: npx terser dist/immutable.es.js --comments false | npx prettier --parser=babel > dist/immutable.es.prettier.js working-directory: pr - name: 'Execute prettier main dist' run: npx terser dist/immutable.es.js --comments false | npx prettier --parser=babel > dist/immutable.es.prettier.js working-directory: main - name: 'Output diff' run: diff --unified --ignore-blank-lines --ignore-all-space main/dist/immutable.es.prettier.js pr/dist/immutable.es.prettier.js