mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
45 lines
950 B
YAML
45 lines
950 B
YAML
name: Lint
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.18.0
|
|
|
|
- name: Install dependencies
|
|
run: yarn --frozen-lockfile
|
|
|
|
- name: Validate current commit (last commit) with commitlint
|
|
run: npx commitlint --last --verbose
|
|
|
|
- name: Typecheck
|
|
run: yarn typecheck
|
|
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
- name: Format check
|
|
run: yarn format-check
|
|
|
|
- name: test action
|
|
id: get-version
|
|
uses: beaconbrigade/package-json-version@v0.3.2
|
|
with:
|
|
path: .
|
|
|
|
- name: Print the version
|
|
run: echo "The version was ${{ steps.get-version.outputs.version }}"
|