forked from DIRACGrid/WebAppDIRAC
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.72 KB
/
codestyle.yml
File metadata and controls
55 lines (48 loc) · 1.72 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Basic tests
on: [push, pull_request]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Sencha esLint plugin
id: cache_sencha_eslint
uses: actions/cache@v2
with:
path: sencha_eslint-plugin-extjs.7.0.0.tgz
key: sencha_eslint-plugin-extjs.7.0.0.tgz
- name: Download Sencha esLint plugin
if: steps.cache_sencha_eslint.outputs.cache-hit != 'true'
run: curl --fail -L -o sencha_eslint-plugin-extjs.7.0.0.tgz http://diracproject.web.cern.ch/diracproject/externalLibraries/@sencha_eslint-plugin-extjs.7.0.0.tgz
- name: Install dependencies
run: npm install eslint sencha_eslint-plugin-extjs.7.0.0.tgz --save-dev
- name: Run Tests
run: node_modules/.bin/eslint src/WebAppDIRAC/WebApp
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install --save-dev --save-exact prettier@1.19.1
- name: Run Tests
run: node_modules/.bin/prettier --check src/WebAppDIRAC/WebApp/static/**/*.js
pyLint:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'DIRACGrid/WebAppDIRAC'
defaults:
# Activate the conda environment automatically in each step
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: DIRACGrid/DIRAC
path: .DIRAC
ref: integration
- name: Prepare environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: .DIRAC/environment.yml
- name: Run tests
run: pylint -E src/WebAppDIRAC