Skip to content

Commit

Permalink
First GH action test run
Browse files Browse the repository at this point in the history
See for installing the correct npm version:
actions/setup-node#213 (comment)
  • Loading branch information
ladytrekker committed Mar 1, 2022
1 parent fbb5d79 commit 4f1f5fe
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update_translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update Translations
# Change later for schedules
on:
push:
branches:
- add-gh-actions

jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: cache node_modules
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
path: |
node_modules
- name: Install latest npm
run: |
npm install -g npm &&
npm --version &&
npm list -g --depth 0
- name: Install packages
run: npm run install

- name: Test Lint
run: npm run format-all

0 comments on commit 4f1f5fe

Please sign in to comment.