Skip to content

Commit

Permalink
get actions from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Oct 16, 2024
1 parent ec96853 commit 32398fc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint-eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ESLint

on:
workflow_dispatch:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

env:
NODE_VERSION: 20

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./js
steps:
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: npm ci

- name: Code Linting
run: npx eslint ./**/*.js

- name: CSS Linting
run: npx stylelint ../css/*.css
5 changes: 3 additions & 2 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Lint
name: Lint-php

on:
workflow_dispatch:
push:
branches: [master, develop]
pull_request:
branches: [master]
branches: [master, develop]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Lint-phpcs

on:
workflow_dispatch:
Expand Down

0 comments on commit 32398fc

Please sign in to comment.