From fd6ba5137e4cc105d5bf6e31fc109f46803e9aa9 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 10 Feb 2025 15:35:36 -0800 Subject: [PATCH] Create GitHub Actions pipeline --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..91c3c0e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build and test +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci --include=dev + - name: Lint + run: npm run lint + - name: Build + run: npm run build \ No newline at end of file