test: test force push #2306
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
name: Commitlint | |
on: [push, pull_request] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml | |
- run: echo -n '' > .dockerignore | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.16.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@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.16.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 |