Skip to content

Commit 00eb2db

Browse files
authored
Merge pull request #5 from adamplesnik/feature/add-test-actions
Feature/add test actions
2 parents c790032 + 92505bc commit 00eb2db

File tree

3 files changed

+7796
-2
lines changed

3 files changed

+7796
-2
lines changed

.github/workflows/test.js.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Build and test
5+
6+
on:
7+
push:
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
- run: npm ci
28+
- run: npm run build --if-present
29+
- run: npm test

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
.idea
22
node_modules
33
dist
4-
yarn.lock
5-
package-lock.json

0 commit comments

Comments
 (0)