From c09896d1d1545a498eed1aa83697050c25749b8e Mon Sep 17 00:00:00 2001 From: birjolaxew Date: Tue, 15 Sep 2020 15:52:33 +0200 Subject: [PATCH] ci: add GitHub Action for testing code on push and pull requests --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..ae62778 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test +on: [push, pull_request] + +jobs: + test: + name: Run tests + runs-on: ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Node.js setup + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: npm ci + - name: Lint + run: npm run lint + - name: Test + run: npm test