Skip to content

Commit 2c47e11

Browse files
committed
Added prettier and some workflows for github actions
1 parent 8c9caa8 commit 2c47e11

File tree

7 files changed

+35812
-3
lines changed

7 files changed

+35812
-3
lines changed

.github/workflows/nightly.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Daily Build
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
nightly:
12+
if: github.repository == 'primefaces/primeng' && github.ref == 'refs/heads/master'
13+
runs-on: ubuntu-latest
14+
name: Node ${{ matrix.node-version }}
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.x, 18.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
29+
- name: Build
30+
run: |
31+
npm install
32+
npm run build:lib

.github/workflows/node.js.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: NodeJS CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.x, 18.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
29+
- name: Build
30+
run: |
31+
npm install
32+
33+
- name: Lint Check
34+
if: ${{ success() }}
35+
run: |
36+
npm run lint
37+
38+
- name: Code Format
39+
if: ${{ success() }}
40+
run: |
41+
npm run format:check
42+
43+
- name: Security Check
44+
if: ${{ success() }}
45+
run: |
46+
npm run security:check
47+
48+
- name: Test
49+
if: ${{ success() }}
50+
run: |
51+
npm run test

.prettierignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Ignore artifacts:
2+
build
3+
coverage
4+
dist
5+
out
6+
public
7+
styles
8+
node_modules
9+
.vscode
10+
.angular

.prettierrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"useTabs": false,
3+
"tabWidth": 4,
4+
"trailingComma": "none",
5+
"semi": true,
6+
"singleQuote": true,
7+
"vueIndentScriptAndStyle": false,
8+
"printWidth": 250,
9+
"bracketSameLine": false
10+
}

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode"
5+
]
6+
}

0 commit comments

Comments
 (0)