feat(gh actions): try gh actions
This commit is contained in:
32
.github/workflows/on-push-or-pull.yml
vendored
32
.github/workflows/on-push-or-pull.yml
vendored
@@ -57,4 +57,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.CACHE_DIST_PATH }}
|
path: ${{ env.CACHE_DIST_PATH }}
|
||||||
key: dist-${{ github.run_id }}
|
key: dist-${{ github.run_id }}
|
||||||
- run: npx ng build --runner cloud --prod
|
- run: npx ng build --prod
|
||||||
|
|
||||||
|
# run unit tests
|
||||||
|
unit_tests_with_coverage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ env.CACHE_NODE_MODULES_PATH }}
|
||||||
|
key: node_modules-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ env.CACHE_DIST_PATH }}
|
||||||
|
key: dist-${{ github.run_id }}
|
||||||
|
- run: npm run test-coverage
|
||||||
|
- run: npx codecov ./coverage/
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
# run linting
|
||||||
|
linting:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: install
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ${{ env.CACHE_NODE_MODULES_PATH }}
|
||||||
|
key: node_modules-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
- run: npm run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user