From ee008b0f60eac17f4d9a823419f6bc503c5a3728 Mon Sep 17 00:00:00 2001 From: hornta Date: Sat, 22 Jun 2024 18:11:12 +0200 Subject: [PATCH] chore: add github workflow --- .github/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 000000000..1dbe701fa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Test +on: [push] +jobs: + test: + strategy: + matrix: + node: [20, 22] + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + name: Node ${{ matrix.node }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm run build + - run: npm test