Skip to content

Commit

Permalink
fix: ci test flows (#2)
Browse files Browse the repository at this point in the history
* fix: ci test flows

* ci: same scripts for test

Co-authored-by: Slavo Vojacek <slavovojacek@192.168.1.122>
  • Loading branch information
slavovojacek and Slavo Vojacek authored Mar 14, 2022
1 parent d149a9c commit 9801c76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: Run semantic release
run: |
npm ci
npm run build
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:

- name: Check format, lint and build from source
run: |
npm ci
npm ci --ignore-scripts
npm run format:check
npm run lint:check
npm run build
npx tsc
# TODO: add test step

test-lambda-functions:
Expand All @@ -50,8 +50,8 @@ jobs:
- name: Check format, lint and build from source
working-directory: ./lambda-functions
run: |
npm ci
npm ci --ignore-scripts
npm run format:check
npm run lint:check
npm run build
npx tsc
# TODO: add test step
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"!dist/*.tsbuildinfo"
],
"scripts": {
"build": "tsc",
"prepack": "tsc; cd lambda-functions; npm ci; npm run build; cp -r dist ../dist/constructs/lambda/assets",
"postinstall": "cd lambda-functions; npm ci",
"build": "tsc; cd lambda-functions; npm run build",
"postbuild": "cp -r lambda-functions/dist dist/constructs/lambda/assets",
"test": "jest",
"format": "prettier --write '{.github,lib,test}/**' '*.json'",
"format:check": "prettier --check '{.github,lib,test}/**' '*.json'",
Expand Down

0 comments on commit 9801c76

Please sign in to comment.