зеркало из https://github.com/github/catalyst.git
Merge pull request #247 from github/upgrade-actions-runners
Upgrade actions runners
This commit is contained in:
Коммит
8c600caae1
|
@ -3,8 +3,6 @@ name: Build
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-node:
|
test-node:
|
||||||
|
@ -12,20 +10,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the project
|
- name: Checkout the project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Cache node modules
|
- name: Use Node.js 16.x (LTS)
|
||||||
uses: actions/cache@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
node-version: 16.x
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
cache: 'npm'
|
||||||
restore-keys: |
|
- run: npm ci
|
||||||
${{ runner.os }}-node-
|
|
||||||
- name: Use Node.js 13.11.0
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 13.11.0
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm i
|
|
||||||
- name: Lint Codebase
|
- name: Lint Codebase
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Run Node.js Tests
|
- name: Run Node.js Tests
|
||||||
|
|
|
@ -8,10 +8,12 @@ jobs:
|
||||||
publish-npm:
|
publish-npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout the project
|
||||||
- uses: actions/setup-node@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Use Node.js 16.x (LTS)
|
||||||
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 16.x
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
cache: npm
|
cache: npm
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
Загрузка…
Ссылка в новой задаче