From 193175900a2bf564d3aca364b77eccbc68dcec34 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 20 Feb 2024 21:33:09 +0100 Subject: [PATCH] chore: add GH action workflow --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..20f15a0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: Node.js CI + +on: [push] + +jobs: + test: + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + node-version: ["20.x"] + + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - run: npm i + - run: npm run build --if-present + - run: npm test