From f0fc916712761f0ba5743521ab66568becbfabe4 Mon Sep 17 00:00:00 2001 From: Jonathan Irvin Date: Sat, 7 Sep 2024 13:28:29 -0500 Subject: [PATCH] add build gh-action Signed-off-by: Jonathan Irvin --- .github/build.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/build.yaml diff --git a/.github/build.yaml b/.github/build.yaml new file mode 100644 index 00000000..382ddb64 --- /dev/null +++ b/.github/build.yaml @@ -0,0 +1,26 @@ +name: Build + +on: + push: + branches: [$default-branch] + pull_request: + branches: [$default-branch] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present