CI: Use containerized make targets

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2020-08-18 16:25:24 +02:00
Родитель cd8f1e6b06
Коммит af25092e51
1 изменённых файлов: 4 добавлений и 37 удалений

41
.github/workflows/main.yml поставляемый
Просмотреть файл

@ -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