From 519d8c169577316e9d9c6b09144c175936cc8e23 Mon Sep 17 00:00:00 2001 From: Hinrich Riedel Date: Tue, 14 Nov 2023 01:12:16 +0100 Subject: [PATCH] Adds workflow for running tests in CI --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..7626724 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Node.js CI + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + - name: Run tests [Node.js ${{ matrix.node-version }}] + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: yarn --frozen-lockfile + - run: yarn test:ci \ No newline at end of file