3939 os : macos-latest,
4040 }
4141 steps :
42- - uses : actions/checkout@v2
42+ - uses : actions/checkout@v4
4343
4444 - name : Create Build Environment
4545 # Some projects don't allow in-source building, so create a separate build directory
7373 name : coverage
7474 runs-on : ubuntu-latest
7575 steps :
76- - uses : actions/checkout@v2
76+ - uses : actions/checkout@v4
7777 - name : Install lcov
7878 run : git clone https://github.com/linux-test-project/lcov.git && cd lcov && sudo make install
7979
@@ -95,29 +95,19 @@ jobs:
9595 shell : bash
9696 run : ctest -C $BUILD_TYPE
9797
98- - name : Coverage
99- working-directory : coverage
100- shell : bash
101- run : lcov -c -d . --include **/include/lrdb/** -o ./lcov.info
102-
103- - name : Coveralls
104- uses : coverallsapp/github-action@master
105- with :
106- github-token : ${{ secrets.GITHUB_TOKEN }}
107-
10898 emscripten :
10999 name : build for node.js
110100 runs-on : ubuntu-latest
111101 steps :
112- - uses : mymindstorm/setup-emsdk@v7
113- - uses : actions/checkout@v2
102+ - uses : mymindstorm/setup-emsdk@v11
103+ - uses : actions/checkout@v4
114104 - run : cmake -E make_directory build
115105 - run : emcmake cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release
116106 working-directory : build
117107 - run : cmake --build . && cmake --build . --target install
118108 working-directory : build
119109 - name : Archive build result for js
120- uses : actions/upload-artifact@v2
110+ uses : actions/upload-artifact@v4
121111 with :
122112 name : node_lua_with_lrdb
123113 path : node/bin/node_lua_with_lrdb.*
@@ -128,25 +118,25 @@ jobs:
128118 runs-on : ubuntu-latest
129119 strategy :
130120 matrix :
131- node-version : [10 .x, 12.x, 14 .x]
121+ node-version : [20 .x, 22 .x]
132122 steps :
133- - uses : actions/checkout@v2
123+ - uses : actions/checkout@v4
134124 - name : Use Node.js ${{ matrix.node-version }}
135- uses : actions/setup-node@v1
125+ uses : actions/setup-node@v4
136126 with :
137127 node-version : ${{ matrix.node-version }}
138128 - name : Download a node_lua_with_lrdb
139- uses : actions/download-artifact@v2
129+ uses : actions/download-artifact@v4
140130 with :
141131 name : node_lua_with_lrdb
142132 path : node/bin/
143- - run : yarn
133+ - run : npm ci
144134 working-directory : node
145- - run : yarn build
135+ - run : npm run build
146136 working-directory : node
147- - run : yarn lint
137+ - run : npm run lint
148138 working-directory : node
149- - run : yarn test
139+ - run : npm run test
150140 working-directory : node
151141 env :
152142 CI : true
0 commit comments