Run tests on CI

This commit is contained in:
0x1eef 2023-09-28 19:41:27 -03:00
parent 2e41de979a
commit 6e01d62c27
2 changed files with 25 additions and 1 deletions

23
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: photon
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]
name: tests
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm i
- run: npm test

View file

@ -27,6 +27,7 @@
"webpack-cli": "^4.10.0" "webpack-cli": "^4.10.0"
}, },
"scripts": { "scripts": {
"build": "npm exec webpack" "build": "npm exec webpack",
"test": "npm exec jest -- test"
} }
} }