File tree 3 files changed +125
-56
lines changed
3 files changed +125
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ push :
4
+ tags : ["csv@*"]
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ node-version : [16.x, 18.x, 20.x, 22.x]
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ fetch-depth : 0
15
+ - name : Use Node.js ${{ matrix.node-version }}
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : ${{ matrix.node-version }}
19
+ - run : npm install
20
+ - run : npm run test
21
+ publish :
22
+ needs : [test]
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ with :
27
+ fetch-depth : 0
28
+ - uses : actions/setup-node@v4
29
+ with :
30
+ node-version : " 22.x"
31
+ registry-url : " https://registry.npmjs.org"
32
+ - run : npm ci
33
+ - run : npm run publish
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments