Skip to content

Commit

Permalink
ci: gh add working-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Sep 8, 2020
1 parent 0eac8b8 commit 3992960
Showing 1 changed file with 54 additions and 3 deletions.
57 changes: 54 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -11,7 +11,8 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]
node: [12]

services:
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- run: pnpm run test:postgresql
working-directory: src
env:
CI: true
SKIP_GIT: true
Expand All @@ -65,7 +67,8 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]
node: [12]

services:
Expand Down Expand Up @@ -110,6 +113,7 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- run: pnpm run test:mysql
working-directory: src
env:
CI: true
SKIP_GIT: true
Expand All @@ -124,7 +128,8 @@ jobs:

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]
node: [12]

steps:
Expand Down Expand Up @@ -154,6 +159,52 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- run: pnpm run test:sqlite
working-directory: src
env:
CI: true
SKIP_GIT: true
GITHUB_CONTEXT: ${{ toJson(github) }}

#
# CLI-COMMANDS
#
cli-:
runs-on: ubuntu-latest

strategy:
matrix:
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest]
node: [12]

steps:
- uses: actions/checkout@v2

# From https://docs.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}

- run: bash .github/workflows/setup.sh
env:
CI: true
SKIP_GIT: true
GITHUB_CONTEXT: ${{ toJson(github) }}

- run: pnpm run test:commands
working-directory: src
env:
CI: true
SKIP_GIT: true
Expand Down

0 comments on commit 3992960

Please sign in to comment.