File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Translations
2
+ # Change later for schedules
3
+ on :
4
+ push :
5
+ branches :
6
+ - add-gh-actions
7
+
8
+ jobs :
9
+ run-checks :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Read .nvmrc
16
+ run : echo ::set-output name=NVMRC::$(cat .nvmrc)
17
+ id : nvm
18
+
19
+ - name : Setup node
20
+ uses : actions/setup-node@v2
21
+ with :
22
+ node-version : " ${{ steps.nvm.outputs.NVMRC }}"
23
+
24
+ - name : cache node_modules
25
+ uses : actions/cache@v2
26
+ with :
27
+ key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
28
+ path : |
29
+ node_modules
30
+
31
+ - name : Install latest npm
32
+ run : |
33
+ npm install -g npm &&
34
+ npm --version &&
35
+ npm list -g --depth 0
36
+
37
+ - name : Install packages
38
+ run : npm run install
39
+
40
+ - name : Test Lint
41
+ run : npm run format-all
You can’t perform that action at this time.
0 commit comments