зеркало из https://github.com/docker/node-sdk.git
CI: Use containerized make targets
Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Родитель
cd8f1e6b06
Коммит
af25092e51
|
@ -8,46 +8,13 @@ jobs:
|
|||
- name: Begin CI...
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node 12
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- name: Use cached node_modules
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: node_modules
|
||||
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
nodeModules-
|
||||
|
||||
- name: Link docker command line
|
||||
run: ln -s $(which docker) /tmp/com.docker.cli
|
||||
|
||||
- name: Add cli to path
|
||||
run: echo "::add-path::/tmp"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Download CLI
|
||||
env:
|
||||
DOCKER_GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }}
|
||||
run: yarn download-cli
|
||||
run: make lint
|
||||
|
||||
- name: Test
|
||||
run: yarn test --ci --coverage --maxWorkers=2
|
||||
run: make test
|
||||
env:
|
||||
CI: true
|
||||
DOCKER_GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }}
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
env:
|
||||
CI: true
|
||||
run: make build
|
||||
|
|
Загрузка…
Ссылка в новой задаче