mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [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/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Commitlint
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml
|
|
- run: echo -n '' > .dockerignore
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.9.0'
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.npm
|
|
**/node_modules
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
- run: npm ci --ignore-scripts
|
|
- uses: ./
|
|
id: run_commitlint
|
|
env:
|
|
NODE_PATH: ${{ github.workspace }}/node_modules
|
|
- name: Show results from JSON output
|
|
if: ${{ always() }}
|
|
run: echo ${{ toJSON(steps.run_commitlint.outputs.results) }}
|
|
commitlint-pulling-from-docker-hub:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.9.0'
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.npm
|
|
**/node_modules
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
- run: npm ci --ignore-scripts
|
|
- uses: ./
|
|
env:
|
|
NODE_PATH: ${{ github.workspace }}/node_modules
|