7 changed files with 51 additions and 62 deletions
@ -1,29 +0,0 @@
@@ -1,29 +0,0 @@
|
||||
name: Linting |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
- dev |
||||
pull_request: |
||||
types: [opened, reopened, synchronize] |
||||
|
||||
jobs: |
||||
linting: |
||||
name: Run linters |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Install Node.js |
||||
uses: actions/setup-node@v1 |
||||
with: |
||||
node-version: 16 |
||||
|
||||
- name: Install Yarn packages |
||||
run: yarn install |
||||
|
||||
- name: Run linters |
||||
run: yarn lint:strict |
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
name: Linting and Testing |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
- dev |
||||
pull_request: |
||||
types: [opened, reopened, synchronize] |
||||
|
||||
jobs: |
||||
linting: |
||||
name: Run Linters |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Install Node.js |
||||
uses: actions/setup-node@v1 |
||||
with: |
||||
node-version: 16 |
||||
|
||||
- name: Install Yarn packages |
||||
run: yarn install |
||||
|
||||
- name: Run ESLint Report |
||||
run: yarn lint:report |
||||
# continue on error, so it still reports it in the next step |
||||
continue-on-error: true |
||||
|
||||
- name: Annotate Code Linting Results |
||||
uses: ataylorme/eslint-annotate-action@v2 |
||||
with: |
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
||||
report-json: "eslint_report.json" |
||||
|
||||
- name: Build Project |
||||
run: npm run build |
@ -1,30 +0,0 @@
@@ -1,30 +0,0 @@
|
||||
name: Testing |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- dev |
||||
pull_request: |
||||
types: [opened, reopened, synchronize] |
||||
|
||||
permissions: read-all |
||||
|
||||
jobs: |
||||
build: |
||||
name: Build |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Install Node.js |
||||
uses: actions/setup-node@v1 |
||||
with: |
||||
node-version: 16 |
||||
|
||||
- name: Install Yarn packages |
||||
run: yarn install |
||||
|
||||
- name: Build project |
||||
run: yarn build |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{ |
||||
"recommendations": [ |
||||
"dbaeumer.vscode-eslint", |
||||
"editorconfig.editorconfig" |
||||
] |
||||
} |
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
||||
{ |
||||
"files.eol": "\n", |
||||
"editor.detectIndentation": false, |
||||
"editor.tabSize": 2, |
||||
"editor.formatOnSave": true, |
||||
"editor.tabSize": 2 |
||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", |
||||
} |
Loading…
Reference in new issue