Skip to content

Commit bc335ab

Browse files
committed
First GH action test run
See for installing the correct npm version: actions/setup-node#213 (comment)
1 parent 30acfee commit bc335ab

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)