mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +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:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-api:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
@@ -18,19 +18,16 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
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
|
||||
working-directory: ./api
|
||||
run: npm ci
|
||||
- name: Check Code Style
|
||||
run: npm run lint
|
||||
- name: Run Unit Tests
|
||||
working-directory: ./api
|
||||
run: npm test
|
||||
- name: Build Package
|
||||
working-directory: ./api
|
||||
run: npm run package:lib
|
||||
env:
|
||||
CI: true
|
||||
|
||||
Reference in New Issue
Block a user