Skip to content

Commit

Permalink
chore: Formater le code avec Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Mar 4, 2023
1 parent abe47c7 commit 61d25d1
Show file tree
Hide file tree
Showing 30 changed files with 10,013 additions and 9,763 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://editorconfig.org/
root = true

[*]
charset = utf-8
insert_final_newline = true
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 80

[{*.js,*.ts}]
indent_size = 4
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve.
title: ''
title: ""
labels: bug
assignees: ''

assignees: ""
---

### Describe the bug
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discussion
url: https://github.com/regseb/cronnor/discussions
about: Ask a question.
- name: Discussion
url: https://github.com/regseb/cronnor/discussions
about: Ask a question.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project.
title: ''
title: ""
labels: enhancement
assignees: ''

assignees: ""
---

### Describe the problem
Expand Down
112 changes: 56 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,75 @@ on:
push:
pull_request:
schedule:
- cron: '3 4 * * 5'
- cron: "3 4 * * 5"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Lint files
run: npm run lint -- --formatter github
- name: Lint files
run: npm run lint -- --formatter github

- name: Check types
run: npm run lint:types
if: always()
- name: Check types
run: npm run lint:types
if: always()

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
node_version: [ 18, 19 ]
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 19]
steps:
- name: Setup Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Setup Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Run unit tests
run: npm run test:unit
- name: Run unit tests
run: npm run test:unit

coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- name: Run mutation tests and send coverage
run: npm run test:coverage -- --reporters clear-text,dashboard
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

analyze:
runs-on: ubuntu-latest
Expand All @@ -81,15 +81,15 @@ jobs:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'javascript'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "javascript"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Loading

0 comments on commit 61d25d1

Please sign in to comment.