From 502fb31a2ae5c6571ac765dcabb063d990f8803b Mon Sep 17 00:00:00 2001 From: arnaucube Date: Fri, 5 Feb 2021 22:06:33 +0100 Subject: [PATCH] Add GHA --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..331d7b6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test + +on: [push, pull_request] + +jobs: + node-tests: + runs-on: ubuntu-latest + steps: + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: 10.x + + - name: Build + run: | + npm install + npm run build + - name: Run tests + run: npm run test