Skip to content

Commit

Permalink
fix: .Github folder in gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
LudovicMalot committed Jan 19, 2024
1 parent e3cfdbd commit c778d53
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/naming-convention.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Convention

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "43 22 * * 3"

jobs:
commitlint:
name: Lint Commit Messages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Commitlint
run: |
npm install --save-dev @commitlint/{config-conventional,cli}
- name: Lint Commit Messages
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
npx commitlint --from=${{ github.event.pull_request.head.sha }}
else
npx commitlint --from=${{ github.sha }}
fi
eslint:
name: Run eslint scanning
needs: commitlint
runs-on: ubuntu-latest
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
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install ESLint
run: |
npm install [email protected]
npm install @microsoft/[email protected]
- name: Run ESLint
run: npx eslint .
--config .eslintrc.js
--ext .js,.jsx,.ts,.tsx
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true
27 changes: 27 additions & 0 deletions .github/workflows/schemas-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Schemas validation check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Check JSON Schemas
run: |
npm install -g ajv-cli
node scripts/ValidateSchemas.js
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.DS_Store
node_modules/
dist/
.github/
.idea/
.idea/

0 comments on commit c778d53

Please sign in to comment.