MOBILE-4110 ci: Fix node versions
parent
1f81ea3513
commit
fe916c2dac
|
@ -32,11 +32,9 @@ jobs:
|
|||
BEHAT_TAGS: ${{ github.event.inputs.behat_tags || '~@performance' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- id: nvmrc
|
||||
uses: browniebroke/read-nvmrc-action@v1
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '${{ steps.nvmrc.outputs.node_version }}'
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Additional checkouts
|
||||
run: |
|
||||
git clone --branch $MOODLE_BRANCH --depth 1 $MOODLE_REPOSITORY $GITHUB_WORKSPACE/moodle
|
||||
|
|
|
@ -9,11 +9,10 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm ci
|
||||
node-version-file: '.nvmrc'
|
||||
- run: npm ci --no-audit
|
||||
- run: result=$(find src -type f -iname '*.html' -exec sh -c 'cat {} | tr "\n" " " | grep -Eo "class=\"[^\"]+\"[^>]+class=\"" ' \; | wc -l); test $result -eq 0
|
||||
- run: npm install -D @ionic/v4-migration-tslint
|
||||
- run: npx tslint -c ionic-migration.json -p tsconfig.json
|
||||
|
|
|
@ -11,11 +11,9 @@ jobs:
|
|||
MOODLE_DOCKER_PHP_VERSION: 7.3
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- id: nvmrc
|
||||
uses: browniebroke/read-nvmrc-action@v1
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '${{ steps.nvmrc.outputs.node_version }}'
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Additional checkouts
|
||||
run: |
|
||||
git clone --branch master --depth 1 https://github.com/moodle/moodle $GITHUB_WORKSPACE/moodle
|
||||
|
|
|
@ -9,10 +9,9 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install npm packages
|
||||
run: npm ci --no-audit
|
||||
- name: Check langindex
|
||||
|
|
|
@ -8,6 +8,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install npm packages
|
||||
run: npm ci --no-audit
|
||||
- name: Update Behat plugin
|
||||
|
|
Loading…
Reference in New Issue