update naming
This commit is contained in:
parent
a986197c49
commit
747a1918e0
|
@ -1,6 +1,6 @@
|
||||||
# Define action name, description, and inputs
|
# Define action name, description, and inputs
|
||||||
name: "Prettier Lint"
|
name: "JS Lint"
|
||||||
description: "Lint code with Prettier"
|
description: "Lint code with Prettier and eslint"
|
||||||
inputs:
|
inputs:
|
||||||
working-directory:
|
working-directory:
|
||||||
required: false
|
required: false
|
|
@ -4,8 +4,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Determine what the prettier changes are
|
# Determine what the js changes are
|
||||||
prettier-changes:
|
js-changes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
packages: ${{ steps.filter.outputs.changes }}
|
packages: ${{ steps.filter.outputs.changes }}
|
||||||
|
@ -19,6 +19,7 @@ jobs:
|
||||||
# key will be returned in the output.
|
# key will be returned in the output.
|
||||||
filters: |
|
filters: |
|
||||||
packages/dashboard: packages/dashboard/**
|
packages/dashboard: packages/dashboard/**
|
||||||
|
packages/dashboard-v2: packages/dashboard-v2/**
|
||||||
packages/dnslink-api: packages/dnslink-api/**
|
packages/dnslink-api: packages/dnslink-api/**
|
||||||
packages/handshake-api: packages/handshake-api/**
|
packages/handshake-api: packages/handshake-api/**
|
||||||
packages/health-check: packages/health-check/**
|
packages/health-check: packages/health-check/**
|
||||||
|
@ -46,18 +47,18 @@ jobs:
|
||||||
packages/health-check/Dockerfile: packages/health-check/Dockerfile
|
packages/health-check/Dockerfile: packages/health-check/Dockerfile
|
||||||
packages/website/Dockerfile: packages/website/Dockerfile
|
packages/website/Dockerfile: packages/website/Dockerfile
|
||||||
|
|
||||||
# Run the prettier lint if there are changes to any of the prettier packages
|
# Run the js lint if there are changes to any of the js packages
|
||||||
prettier:
|
js-lint:
|
||||||
needs: prettier-changes
|
needs: js-changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
working-directory: ${{ fromJSON(needs.prettier-changes.outputs.packages) }}
|
working-directory: ${{ fromJSON(needs.js-changes.outputs.packages) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run Prettier Action
|
- name: Run JS-Lint Action
|
||||||
uses: ./.github/actions/prettier
|
uses: ./.github/actions/js-lint
|
||||||
with:
|
with:
|
||||||
working-directory: ${{ matrix.working-directory }}
|
working-directory: ${{ matrix.working-directory }}
|
||||||
|
|
||||||
|
|
Reference in New Issue