Skip to content
Myr

test-multiple-builds.yml

This file

Path

.github/workflows/test-multiple-builds.yml

56 lines · 1.8 KiB · YAML

Last changed by

update pnpm etc (#3512)Daishi Katobefore adoption8476d2c

History of this file

Take it

The walk stopped after 200 commits: lines older than f85898f point at it.

chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f

lines 1–8why, one step back
1name: Test Multiple Builds
23on:4 push:5 branches: [main]6 pull_request:7 types: [opened, synchronize]8

workflow: stricter permissionsdaishibefore adoption889077c

lines 9–11why, one step back
9permissions:
10 contents: read11

chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f

line 12why, one step back
12jobs:

ci(.github/workflows): add 'test.yml' and rename job (#3059)Wonsuk Choibefore adoption4597454

line 13why, one step back
13 test_multiple_builds:

chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f

lines 14–20why, one step back
14 runs-on: ubuntu-latest
15 strategy:16 fail-fast: false17 matrix:18 build: [cjs, esm]19 env: [development] # [development, production]20 steps:

ci(.github/workflows): pin GitHub Actions to commit hashes (#3381)Wonsuk Choibefore adoption7fc3991

line 21why, one step back
21 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

workflow: stricter permissions 2daishibefore adoption6784d1e

lines 22–23why, one step back
22 with:
23 persist-credentials: false

update pnpm etc (#3512)Daishi Katobefore adoption8476d2c

lines 24–25why, one step back
24 - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
25 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f

lines 26–48why, one step back
26 with:
27 node-version: 'lts/*'28 cache: 'pnpm'29 - run: pnpm install30 - run: pnpm run build31 - name: Patch for DEV-ONLY32 if: ${{ matrix.env == 'development' }}33 run: |34 sed -i~ "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it('/" tests/*.tsx35 sed -i~ "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it.skip('/" tests/*.tsx36 - name: Patch for PRD-ONLY37 if: ${{ matrix.env == 'production' }}38 run: |39 sed -i~ "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it('/" tests/*.tsx40 sed -i~ "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it.skip('/" tests/*.tsx41 - name: Patch for CJS42 if: ${{ matrix.build == 'cjs' }}43 run: |44 sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\1.js')/" vitest.config.mts45 - name: Patch for ESM46 if: ${{ matrix.build == 'esm' }}47 run: |48 sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/esm\1.mjs')/" vitest.config.mts

chore(deps): update dev dependencies (#3309)Daishi Katobefore adoption350d9ec

line 49why, one step back
49 sed -i~ "1s/^/import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx

chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f

lines 50–56why, one step back
50 env:
51 NODE_ENV: ${{ matrix.env }}52 - name: Test ${{ matrix.build }} ${{ matrix.env }}53 run: |54 pnpm run test:spec55 env:56 NODE_ENV: ${{ matrix.env }}