Skip to content

Commit

Permalink
[CONFIG] [Github Actions] Node.js based workflows with fixed versions…
Browse files Browse the repository at this point in the history
… 22.* moved to 22.x
  • Loading branch information
Gonzalo Diaz committed Aug 28, 2024
1 parent 03ab8f7 commit 767c1cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 22 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Install ESLint
run: |
npm install --include=dev [email protected]
npm install --include=dev @microsoft/[email protected]
- name: Test ESLint
run: |
npx --yes eslint --env-info
- name: Run ESLint
run: >
npx eslint .
Expand All @@ -59,6 +66,7 @@ jobs:
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,18 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:

jobs:
build:

lint:
name: Markdown Lint
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/

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Set up Node.js ${{ matrix.node-version }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22.x

- name: Install dependencies
run: npm install -g markdownlint-cli
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/node-coverage.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,17 @@ on: # yamllint disable-line rule:truthy

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.5.1]
# See supported Node.js release schedule
# at https://nodejs.org/en/about/releases/

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- name: Set up Node.js ${{ matrix.node-version }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22.x

- name: Install dependencies
run: npm ci --verbose
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
"ubuntu-latest",
"macOS-latest"
]
node-version: [18.x, 20.x, 22.5.1]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule
# at https://nodejs.org/en/about/releases/

Expand Down

0 comments on commit 767c1cc

Please sign in to comment.