Skip to content

Commit b3a9add

Browse files
committed
Check with github actions
1 parent e02c7f8 commit b3a9add

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/node.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: NodeJS with Webpack
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
i18next-version: [8.4, 13, 21]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Build
27+
run: |
28+
npm ci --ignore-scripts
29+
npm install --ignore-scripts i18next@${{ matrix.i18next-version }}
30+
if [ $(echo "${{ matrix.i18next-version }} / 1" | bc) -lt 13 ]; then
31+
npm install --ignore-scripts @types/i18next@${{ matrix.i18next-version }}
32+
fi
33+
npm test
34+

0 commit comments

Comments
 (0)