forked from bcgov/supreme-court-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Trigger Web CI when PR is created targeting master branch
- Allow triggering of workflow via GH UI - Added lint and test step but skips it for now
- Loading branch information
Ronaldo Macapobre
committed
Aug 16, 2024
1 parent
1b8f3c9
commit b1a4651
Showing
1 changed file
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
name: APP (Vue) | ||
name: Web CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
# PR targeting master is created or new commits are pushed | ||
pull_request: | ||
branches: [master] | ||
branches: | ||
- master | ||
types: | ||
- opened | ||
- synchronize | ||
paths: | ||
- "web/**" | ||
|
||
# Manual trigger via GH Actions UI | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
working-directory: ./web | ||
codeCov-token: ${{ secrets.CodeCov }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm ci | ||
working-directory: ${{env.working-directory}} | ||
- run: npm run build --if-present | ||
|
||
- run: npm run lint | ||
working-directory: ${{env.working-directory}} | ||
continue-on-error: true | ||
|
||
- run: npm run build | ||
working-directory: ${{env.working-directory}} | ||
|
||
- run: npm run test --if-present | ||
working-directory: ${{env.working-directory}} |