From 289940bed79a5d69ea3f97a8ac813991093edfa2 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:47:18 +1200 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..c62a5bc --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + - dev + pull_request: + +jobs: + build: + name: Build ${{ matrix.name }} + runs-on: ubuntu-latest + strategy: + matrix: + include: + - name: Captive Portal + directory: captive-portal + - name: Webserver v2 + directory: packages/v2 + - name: Webserver v3 + directory: packages/v3 + steps: + - name: Clone the repo + uses: actions/checkout@v4.1.1 + - name: Set up Node.JS + uses: actions/setup-node@v4.0.2 + - name: Install dependencies + run: npm install + - name: Build ${{ matrix.name }} + run: npm run build + working-directory: ${{ matrix.directory }}