mirror of
https://github.com/sasjs/server.git
synced 2026-01-15 09:50:06 +00:00
chore(workflow): add working-directory
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-api:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@@ -18,19 +18,16 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Check pwd 1
|
|
||||||
run: pwd
|
|
||||||
- name: Change directory
|
|
||||||
run: cd api
|
|
||||||
- name: Check pwd 2
|
|
||||||
run: pwd
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
working-directory: ./api
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Check Code Style
|
- name: Check Code Style
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
|
working-directory: ./api
|
||||||
run: npm test
|
run: npm test
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
|
working-directory: ./api
|
||||||
run: npm run package:lib
|
run: npm run package:lib
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|||||||
Reference in New Issue
Block a user