Skip to content

Commit

Permalink
Added prettier and some workflows for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 21, 2022
1 parent 8c9caa8 commit 2c47e11
Show file tree
Hide file tree
Showing 7 changed files with 35,812 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Daily Build

on:
schedule:
- cron: '0 6 * * *'

permissions:
contents: read

jobs:
nightly:
if: github.repository == 'primefaces/primeng' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
name: Node ${{ matrix.node-version }}

strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Build
run: |
npm install
npm run build:lib
51 changes: 51 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: NodeJS CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Build
run: |
npm install
- name: Lint Check
if: ${{ success() }}
run: |
npm run lint
- name: Code Format
if: ${{ success() }}
run: |
npm run format:check
- name: Security Check
if: ${{ success() }}
run: |
npm run security:check
- name: Test
if: ${{ success() }}
run: |
npm run test
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Ignore artifacts:
build
coverage
dist
out
public
styles
node_modules
.vscode
.angular
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"useTabs": false,
"tabWidth": 4,
"trailingComma": "none",
"semi": true,
"singleQuote": true,
"vueIndentScriptAndStyle": false,
"printWidth": 250,
"bracketSameLine": false
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
Loading

0 comments on commit 2c47e11

Please sign in to comment.