Skip to content

Merge pull request #57 from athombv/feature/i18n #46

Merge pull request #57 from athombv/feature/i18n

Merge pull request #57 from athombv/feature/i18n #46

Workflow file for this run

name: Lint
# Version: 2.0.1
# Modified: Yes
#
# Secrets:
# - HOMEY_GITHUB_ACTIONS_BOT_PERSONAL_ACCESS_TOKEN
# - SSH_KEY
# GitHub repo configuration:
# 1. If you have protected branches, go to Branches > edit protected branch > enable 'Require status checks to pass before
# merging' and select the 'ESLint' status check.
# Note: make sure to commit package-lock.json, this is needed for `npm ci`.
# Defines the trigger for this action (e.g. [pull_request, push])
# For more information see: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#about-workflow-events)
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- develop
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
if: env.SSH_KEY != null
with:
ssh-private-key: ${{ env.SSH_KEY }}
# Setup
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com'
- name: Install modules
run: npm clean-install --audit=false
env:
GITHUB_TOKEN: ${{ secrets.HOMEY_GITHUB_ACTIONS_BOT_PERSONAL_ACCESS_TOKEN }}
- name: Lint
run: npm run lint