Skip to content

Commit

Permalink
chore(cicd): fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jul 8, 2020
1 parent f16c909 commit 72d319c
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,36 @@ jobs:
- run: yarn -s build
- run: yarn -s test:unit

system-tests-windows:
strategy:
matrix:
os: [windows-latest]
node-version: [10.x, 12.x]
test-case: [kitchen-sink]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: yarn --frozen-lockfile
- run: yarn -s build
- name: Setup global git user
run: |
# For nexus create app flow which will make an init commit
git config --global user.name prisma-labs
git config --global user.email labs@prisma.io
- run: yarn -s test system/${{matrix.test-case}}

system-tests:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10.x, 12.x]
test-case: [kitchen-sink, create-prisma-app]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -42,8 +66,9 @@ jobs:
git config --global user.name prisma-labs
git config --global user.email labs@prisma.io
- run: yarn -s test system/${{matrix.test-case}}

publish:
needs: [unit-tests, unit-tests-windows, system-tests]
needs: [unit-tests, system-tests, system-tests-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 72d319c

Please sign in to comment.