-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CONFIG] [FIX] yamllint warnings and errors fixed.
False positive in "on:" adrienverge/yamllint#430 (comment) Can't use "%YAML 1.2" directive because brakes Github Actions How to split long command as multiple lines (cross-SO way) https://stackoverflow.com/a/65808412/6366150
- Loading branch information
Gonzalo Diaz
committed
Jun 11, 2024
1 parent
bbb9da2
commit d883f27
Showing
10 changed files
with
213 additions
and
143 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,27 @@ | |
# More details at https://github.com/eslint/eslint | ||
# and https://eslint.org | ||
|
||
--- | ||
|
||
name: ESLint | ||
|
||
on: | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: [ "main", "develop" ] | ||
branches: ["main", "develop", "feature/*"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
- cron: '23 15 * * 2' | ||
|
||
jobs: | ||
|
@@ -25,7 +37,9 @@ jobs: | |
permissions: | ||
contents: read | ||
security-events: write | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
# only required for a private repository by | ||
# github/codeql-action/upload-sarif to get the Action run status | ||
actions: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | ||
|
@@ -36,7 +50,8 @@ jobs: | |
npm install @microsoft/[email protected] | ||
- name: Run ESLint | ||
run: npx eslint . | ||
run: > | ||
npx eslint . | ||
--config .eslintrc | ||
--ext .js,.jsx,.ts,.tsx | ||
--format @microsoft/eslint-formatter-sarif | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
--- | ||
|
||
name: Markdown Lint | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: [ "main", "develop", "feature/*" ] | ||
branches: ["main", "develop", "feature/*"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
# See supported Node.js release schedule | ||
# at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | ||
runs-on: ubuntu-latest | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | ||
|
||
- name: Install dependencies | ||
run: npm install -g markdownlint-cli | ||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Lint | ||
run: markdownlint '**/*.md' --ignore node_modules && echo '✔ Your code looks good.' | ||
- name: Install dependencies | ||
run: npm install -g markdownlint-cli | ||
|
||
- name: Lint | ||
run: > | ||
markdownlint '**/*.md' --ignore node_modules | ||
&& echo '✔ Your code looks good.' |
Oops, something went wrong.