Skip to content

Commit

Permalink
Added a template
Browse files Browse the repository at this point in the history
  • Loading branch information
16adianay committed Nov 24, 2023
1 parent e66ac90 commit a47808f
Show file tree
Hide file tree
Showing 119 changed files with 94,645 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VB/* linguist-vendored
scripts linguist-vendored
*.css linguist-detectable=false
*.aff linguist-detectable=false
120 changes: 120 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Lint

concurrency:
group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}}
cancel-in-progress: true

on:
pull_request:
push:
branches:
- "[0-9][0-9].[0-9].[0-9]*"

jobs:
Angular:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./Angular/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: Angular
run: npm install --no-audit --no-fund

- name: Lint Angular
working-directory: Angular
env:
DEBUG: eslint:cli-engine
run: npm run lint

jQuery:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./jQuery/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: jQuery
run: npm install --no-audit --no-fund

- name: Lint jQuery
working-directory: jQuery
env:
DEBUG: eslint:cli-engine
run: npm run lint

React:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./React/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: React
run: npm install --no-audit --no-fund

- name: Lint React
working-directory: React
env:
DEBUG: eslint:cli-engine
run: npm run lint

Vue:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./Vue/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: Vue
run: npm install --no-audit --no-fund

- name: Lint Vue
working-directory: Vue
env:
DEBUG: eslint:cli-engine
run: npm run lint
87 changes: 87 additions & 0 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: TS compilation

concurrency:
group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}}
cancel-in-progress: true

on:
pull_request:
push:
branches:
- "[0-9][0-9].[0-9].[0-9]*"

jobs:
Angular:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./Angular/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: Angular
run: npm install --no-audit --no-fund

- name: TSC Angular
working-directory: Angular
run: npm run build

React:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./React/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: React
run: npm install --no-audit --no-fund

- name: TSC React
working-directory: React
run: npm run build

Vue:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3

- name: Restore npm cache
uses: actions/cache@v3
with:
path: ./Vue/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run npm install
working-directory: Vue
run: npm install --no-audit --no-fund

- name: TSC Vue
working-directory: Vue
run: npm run type-check
Loading

0 comments on commit a47808f

Please sign in to comment.