|
| 1 | +name: Test |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# branches: ["*"] |
| 5 | +# tags-ignore: ["csv@*"] |
| 6 | +# pull_request: |
| 7 | +jobs: |
| 8 | + test: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + node-version: [16.x, 18.x, 20.x, 22.x] |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + with: |
| 16 | + fetch-depth: 0 |
| 17 | + - name: Use Node.js ${{ matrix.node-version }} |
| 18 | + uses: actions/setup-node@v4 |
| 19 | + with: |
| 20 | + node-version: ${{ matrix.node-version }} |
| 21 | + - run: npm install |
| 22 | + - run: npm run test |
| 23 | + test_legacy: |
| 24 | + runs-on: ubuntu-latest |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + node-version: [14.x] |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + with: |
| 31 | + fetch-depth: 0 |
| 32 | + - name: Use Node.js ${{ matrix.node-version }} |
| 33 | + uses: actions/setup-node@v4 |
| 34 | + with: |
| 35 | + node-version: ${{ matrix.node-version }} |
| 36 | + - run: | |
| 37 | + cwd=`pwd` |
| 38 | + for pkg in packages/*/package.json; do |
| 39 | + cd $cwd/`dirname $pkg` |
| 40 | + npm install |
| 41 | + npm run test:legacy; |
| 42 | + done |
| 43 | + # - run: | |
| 44 | + # echo 'Test csv generate' |
| 45 | + # cwd=`pwd` |
| 46 | + # cd $cwd/packages/csv-generate |
| 47 | + # npm install |
| 48 | + # npm run test:legacy |
| 49 | + # npm link |
| 50 | + # cd $pwd |
| 51 | + # - run: | |
| 52 | + # echo 'Test stream transform' |
| 53 | + # cwd=`pwd` |
| 54 | + # cd $cwd/packages/stream-transform |
| 55 | + # npm install |
| 56 | + # npm link csv-generate |
| 57 | + # npm run test:legacy |
| 58 | + # npm link |
| 59 | + # cd $pwd |
| 60 | + # - run: | |
| 61 | + # echo 'Test csv parse' |
| 62 | + # cwd=`pwd` |
| 63 | + # cd $cwd/packages/csv-parse |
| 64 | + # npm install |
| 65 | + # npm link csv-generate |
| 66 | + # npm link stream-transform |
| 67 | + # npm run test:legacy |
| 68 | + # npm link |
| 69 | + # cd $pwd |
| 70 | + # - run: | |
| 71 | + # echo 'Test csv stringify' |
| 72 | + # cwd=`pwd` |
| 73 | + # cd $cwd/packages/csv-stringify |
| 74 | + # npm install |
| 75 | + # npm link csv-generate |
| 76 | + # npm run test:legacy |
| 77 | + # npm link |
| 78 | + # cd $pwd |
| 79 | + # - run: | |
| 80 | + # echo 'Test csv' |
| 81 | + # cwd=`pwd` |
| 82 | + # cd $cwd/packages/csv |
| 83 | + # npm install |
| 84 | + # npm link csv-generate |
| 85 | + # npm link csv-parse |
| 86 | + # npm link csv-stringify |
| 87 | + # npm link stream-transform |
| 88 | + # npm run test:legacy |
| 89 | + # npm link |
| 90 | + # cd $pwd |
0 commit comments