Merge pull request #7 from 0x1eef/ci-tests

Run tests on CI
This commit is contained in:
0x1eef 2023-09-28 19:44:01 -03:00 committed by GitHub
commit 68410be066
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
} }
} }