From 3f0f6e4d3b3f8e59856ef047dd058f760acef909 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 8 Oct 2024 16:35:36 +0200 Subject: [PATCH] Github CI: new job to test build and lint. --- .github/workflows/gh-build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/gh-build.yml diff --git a/.github/workflows/gh-build.yml b/.github/workflows/gh-build.yml new file mode 100644 index 00000000..6623da85 --- /dev/null +++ b/.github/workflows/gh-build.yml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 John Livingston +# +# SPDX-License-Identifier: AGPL-3.0-only + +name: github build and lint + +on: + push: + branches: + - main + pull_request: + types: [opened, reopened] + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: false # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - uses: actions/setup-node@v4 + with: + node-version: '18.x' + + - name: Install build dependencies + run: sudo apt update && sudo apt install wget reuse -y + + - name: Build + run: npm install + + - name: Lint + run: npm run lint