diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-27 14:29:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 14:29:07 -0500 |
commit | 4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881 (patch) | |
tree | f5ffb4d7a23d7c6edee01fb605ff81348feea40d /.github | |
parent | 562cd341f75bfb2701cc844cf30f1191e4170ca7 (diff) | |
download | skyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.tar.gz skyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.tar.bz2 skyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.zip |
Add unit tests (#12)
* start adding unit tests
* add more to test/data/mojang.json
* fix sending http requests in tests when it shouldn't
* add a few more tests
* try to add a github action to run tests
* Update test.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e152ab3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + name: Run tests + steps: + - name: Checkout + uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14.15.0' + - run: npm install + + - name: Run tests + run: npm test |