From 5f7bf94477e3f7209a77f608157c81ef90b66cc8 Mon Sep 17 00:00:00 2001 From: Krystex <5840423+Krystex@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:29:07 +0100 Subject: [PATCH] Trying to add testing to CI --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..05448df --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ + +name: Run Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: npm + - run: npm install + - run: npm run test