From 1a973db2ef629d53779a65fac100fd5fc38d68cb Mon Sep 17 00:00:00 2001 From: ladytrekker Date: Tue, 1 Mar 2022 13:35:10 +0000 Subject: [PATCH] First GH action test run See for installing the correct npm version: https://github.com/actions/setup-node/issues/213#issuecomment-1019371544 --- .github/workflows/update_translations.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/update_translations.yml diff --git a/.github/workflows/update_translations.yml b/.github/workflows/update_translations.yml new file mode 100644 index 0000000000..41136fa501 --- /dev/null +++ b/.github/workflows/update_translations.yml @@ -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 install + + - name: Test Lint + run: npm run format-all