Github CI: new job to test build and lint.
This commit is contained in:
parent
8a481ecb0e
commit
3f0f6e4d3b
34
.github/workflows/gh-build.yml
vendored
Normal file
34
.github/workflows/gh-build.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
# SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
||||
#
|
||||
# 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
|
Loading…
x
Reference in New Issue
Block a user