ci: add docker test to ci

This commit is contained in:
Amin Yahyaabadi 2021-09-18 07:12:22 -05:00
parent f96f8ff178
commit 577e455c62
1 changed files with 46 additions and 0 deletions

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- master - master
- main - main
- dev
jobs: jobs:
Test: Test:
@ -68,3 +69,48 @@ jobs:
./exe ./exe
./dist ./dist
retention-days: 1 retention-days: 1
Docker:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
node:
- 14
pnpm:
- 6
cache_reset_counter:
- 0
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.pnpm-store
D:\.pnpm-store
key: "setupcpp-docker-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}-${{ matrix.cache_reset_counter }}"
restore-keys: |
"setupcpp-docker-cache-OS:${{ matrix.os }}"
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- name: Install and build
run: |
pnpm install
- name: Build
id: docker_build
run: |
pnpm build.docker