Skip to content

feat(MCPE-4477): Add format check plugin #22

feat(MCPE-4477): Add format check plugin

feat(MCPE-4477): Add format check plugin #22

Workflow file for this run

name: Commit
on: push
jobs:
commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: extenda/actions/gcp-secret-manager@v0
with:
service-account-key: ${{ secrets.SECRET_AUTH }}
secrets: |
DOCKER_PASSWORD: dockerhub-password
DOCKER_USERNAME: dockerhub-username
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Run tests
run: |
npm ci
npm ci --prefix commitlint-plugin-tense
npm test --prefix commitlint-plugin-tense
npm ci --prefix commitlint-plugin-form
npm test --prefix commitlint-plugin-form
- name: Push to DockerHub
if: github.ref == 'refs/heads/master'
uses: extenda/actions/docker@v0
with:
image: extenda/commitlint
tag: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}