chore: update husky to 9.1.5 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# SPDX-FileCopyrightText: © 2024 Sebastian Davids <[email protected]> | |
# SPDX-License-Identifier: Apache-2.0 | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: ci | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ !contains(github.ref, 'main/') }} | |
permissions: {} | |
jobs: | |
# unfortunately each job is billed for at least 1 minute in GH Actions | |
# so use one big one to save GH Action minutes | |
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions | |
lint-build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout/releases | |
uses: actions/[email protected] | |
- name: Classify changes | |
# https://github.com/dorny/paths-filter/releases | |
uses: dorny/[email protected] | |
id: changes | |
with: | |
filters: | | |
sh: | |
- '**.sh' | |
yaml: | |
- '**.yaml' | |
Dockerfile: | |
- '.hadolint.yaml' | |
- 'Dockerfile' | |
js: | |
- '.npmrc' | |
- '.nvmrc' | |
- '.prettierignore' | |
- 'package.json' | |
- 'package-lock.json' | |
- 'eslint.config.mjs' | |
- 'prettier.config.mjs' | |
- '**.mjs' | |
build: | |
- 'Dockerfile' | |
- 'package-lock.json' | |
- '**.mjs' | |
- if: steps.changes.outputs.sh == 'true' | |
name: Lint shell scripts | |
run: scripts/shellscript-check.sh | |
- if: steps.changes.outputs.yaml == 'true' | |
name: Lint YAML files | |
run: yamllint --strict . | |
- if: steps.changes.outputs.Dockerfile == 'true' | |
name: Lint Dockerfile | |
# https://github.com/hadolint/hadolint-action/releases | |
uses: hadolint/[email protected] | |
with: | |
no-color: true | |
- if: steps.changes.outputs.js == 'true' | |
name: Setup node and install dependencies | |
uses: ./.github/actions/setup-node-and-install-dependencies | |
- if: steps.changes.outputs.js == 'true' | |
name: Check formatting | |
run: npm run format:check | |
- if: steps.changes.outputs.js == 'true' | |
name: Lint project files | |
run: npm run lint | |
- if: steps.changes.outputs.build == 'true' | |
name: Build Docker image | |
run: scripts/docker-build.sh |