From 66bab5706f310f3341a633230d48543a6fdd87fc Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Tue, 17 Oct 2023 17:05:14 -0400 Subject: [PATCH 1/2] Improve readability and update to latest versions Signed-off-by: Joe Fusco --- .github/workflows/build.yml | 38 ++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca1906c..d6272b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,17 +1,41 @@ name: Build -on: pull_request + +on: + pull_request: + paths-ignore: + - '**/*.md' + jobs: build: runs-on: ubuntu-latest + strategy: matrix: node: ["16", "18"] + steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: | + ~/.npm + node_modules + key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} + + - name: Setup Node.js + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - run: npm install - - run: cp .env.local.sample .env.local - - run: npm run build - continue-on-error: FALSE \ No newline at end of file + + - name: Install and Build + run: | + npm ci + cp .env.local.sample .env.local + npm run build + + - name: Error handling + if: failure() + run: echo "Build failed!" From d5114b8b7d58f581667652a2ae93f57da65242b7 Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Tue, 17 Oct 2023 17:15:46 -0400 Subject: [PATCH 2/2] Improve job name in webui Signed-off-by: Joe Fusco --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d6272b7..9137812 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: jobs: build: + name: Node ${{ matrix.node }} runs-on: ubuntu-latest strategy: