generated from ctc-uci/npo-frontend-vite-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 899 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on: [pull_request]
permissions: read-all
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- name: Run eslint with reviewdog
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.CTC_DEVOPS_ORG_PAT }}
reporter: github-pr-review
fail_on_error: false
eslint_flags: '**/*.{js,jsx}'
detect-secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run detect-secrets with reviewdog
uses: reviewdog/action-detect-secrets@master
with:
github_token: ${{ secrets.CTC_DEVOPS_ORG_PAT }}
reporter: github-pr-review
# Prevents false positives from failing job
fail_on_error: false