From 935443f1139a396284bbd4c3bbf6dca1650ba7e9 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Sat, 11 May 2024 13:45:53 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20GitHub=20CI=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds GitHub CI workflow. --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ .node-version | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .node-version diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..22d34ad --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + cache: npm + node-version-file: .node-version + - name: Install + run: npm ci --strict-peer-deps + - name: CI build + run: npm run ci-build diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20