Skip to content

Commit

Permalink
Merge pull request #1957 from serverless-heaven/dependabot/npm_and_ya…
Browse files Browse the repository at this point in the history
…rn/eslint-9.13.0

build(deps-dev): bump eslint from 8.57.1 to 9.13.0
  • Loading branch information
j0k3r authored Oct 21, 2024
2 parents 2ddc851 + 9dd12cd commit 0189c33
Show file tree
Hide file tree
Showing 11 changed files with 380 additions and 408 deletions.
67 changes: 0 additions & 67 deletions .eslintrc.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "daily"
time: "02:00"
interval: 'daily'
time: '02:00'
timezone: Europe/Paris
open-pull-requests-limit: 10
versioning-strategy: increase
groups:
babel-dependencies:
patterns:
- "*babel*"
- '*babel*'
ignore:
# require node > 16
- dependency-name: glob
versions:
- ">= 9.0.0"
- '>= 9.0.0'
- package-ecosystem: github-actions
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "02:00"
time: '02:00'
timezone: Europe/Paris
open-pull-requests-limit: 10
1 change: 1 addition & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve and merge minor updates
# eslint-disable-next-line max-len
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: |
gh pr review --approve "$PR_URL"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
name: ESLint

steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: 20

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Lint files"
run: "npm run eslint"
- name: 'Lint files'
run: 'npm run eslint'
12 changes: 6 additions & 6 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ jobs:
publish-npm:
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Run tests"
run: "npm run test"
- name: 'Run tests'
run: 'npm run test'

- name: "Publish package"
- name: 'Publish package'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
68 changes: 34 additions & 34 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,52 @@ jobs:
- windows-latest
- ubuntu-20.04
node:
- "16"
- "18"
- "20"
- "22"
- '16'
- '18'
- '20'
- '22'

steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node }}"
node-version: '${{ matrix.node }}'

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Run tests"
run: "npm run test"
- name: 'Run tests'
run: 'npm run test'

coverage:
name: "Upload coverage"
name: 'Upload coverage'
runs-on: ubuntu-20.04
needs:
- "mocha"
- 'mocha'

steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: 18

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Run tests"
run: "npm run test-coverage"
- name: 'Run tests'
run: 'npm run test-coverage'

- name: "Upload to Coveralls"
- name: 'Upload to Coveralls'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -80,27 +80,27 @@ jobs:
os:
- ubuntu-20.04
node:
- "16"
- '16'

steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node }}"
node-version: '${{ matrix.node }}'

- name: "Install Serverless v1"
- name: 'Install Serverless v1'
run: npm install serverless@1

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Run tests"
run: "npm run test"
- name: 'Run tests'
run: 'npm run test'

serverless-v2:
runs-on: ${{ matrix.os }}
Expand All @@ -111,24 +111,24 @@ jobs:
os:
- ubuntu-20.04
node:
- "16"
- '16'

steps:
- name: "Checkout"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
- name: 'Install Node.js'
uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node }}"
node-version: '${{ matrix.node }}'

- name: "Install Serverless v2"
- name: 'Install Serverless v2'
run: npm install serverless@2

- name: "Install dependencies"
- name: 'Install dependencies'
run: npm ci

- name: "Run tests"
run: "npm run test"
- name: 'Run tests'
run: 'npm run test'
4 changes: 2 additions & 2 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"*.js":
- "eslint"
'*.js':
- 'eslint'
Loading

0 comments on commit 0189c33

Please sign in to comment.