Skip to content

Commit

Permalink
- Trigger Web CI when PR is created targeting master branch
Browse files Browse the repository at this point in the history
- 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.
30 changes: 23 additions & 7 deletions .github/workflows/app-vue.yml
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}}

0 comments on commit b1a4651

Please sign in to comment.