Skip to content

Commit

Permalink
included build feature workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sebenitezg committed Jun 21, 2024
1 parent a778715 commit e9e595b
Showing 1 changed file with 27 additions and 19 deletions.
46 changes: 27 additions & 19 deletions .github/workflows/buildfeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,34 @@
name: Build features

on:
pull_request:
branches: feature/
push:
branches: feature/*

jobs:
build:

runs-on: windows-lates

runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- run: npm ci

- run: npm run build --if-present

- run: npm test
- uses: actions/checkout@v4
- name: pull and checkout from git repository
run: |
echo "pulling and checking out from git repository"
- name: Set up Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install npm packages
run: npm install

- name: Update Angular
run: npm install -g @angular/cli@latest

- name: Run tests
run: |
ng test --watch=false
ng build --prod
echo "running tests and build angular app"
- name: Build
run: ng build --prod

0 comments on commit e9e595b

Please sign in to comment.