From 6139fe0abca91952f0299cdfa8f14aafad7add33 Mon Sep 17 00:00:00 2001 From: Kai Mallea Date: Fri, 26 Feb 2021 22:25:41 -0500 Subject: [PATCH] build(github): add test action --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..0b6d30ce --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Tests + +on: + push: + branches: [$default-branch] + pull_request: + branches: ['*'] + +jobs: + test: + name: Test on node ${{ matrix.node-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test