mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-25 13:50:51 +02:00
2087817a39
Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [docker/login-action](https://github.com/docker/login-action) and [anomalyco/opencode/github](https://github.com/anomalyco/opencode). Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `docker/login-action` from 4.4.0 to 4.5.1 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/af1e73f918a031802d376d3c8bbc3fe56130a9b0...abd2ef45e78c5afb21d64d4ca52ee8550d9572c7) Updates `anomalyco/opencode/github` from 1.18.3 to 1.18.5 - [Release notes](https://github.com/anomalyco/opencode/releases) - [Commits](https://github.com/anomalyco/opencode/compare/127bdb30784d508cc556c71a0f32b508a3061517...e5cc278dec9294a627a7b05f47ce6a564408c1a2) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: docker/login-action dependency-version: 4.5.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: anomalyco/opencode/github dependency-version: 1.18.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
# Installs Node.js dependencies and pnpm, and checks formatting + linting
|
|
|
|
name: Lint Node.js
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
checkout_ref:
|
|
description: Optional commit to check out instead of the triggering ref
|
|
required: false
|
|
type: string
|
|
default: ""
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "v*"
|
|
pull_request:
|
|
paths-ignore:
|
|
- "src-tauri/**"
|
|
- "README.md"
|
|
- ".github/workflows/lint-rs.yml"
|
|
- ".github/workflows/osv.yml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
os: [macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Disable git core.autocrlf on Windows
|
|
if: matrix.os == 'windows-latest'
|
|
run: git config --global core.autocrlf false
|
|
|
|
- name: Checkout repository code
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
|
|
with:
|
|
ref: ${{ inputs.checkout_ref }}
|
|
|
|
- name: Set up pnpm package manager
|
|
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 #v6.0.9
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0
|
|
with:
|
|
node-version-file: .node-version
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies from lockfile
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run lint step
|
|
run: pnpm run lint:js
|