ci: add github CI setup #5
Workflow file for this run
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
name: Standard Angular App Flow | |
on: | |
pull_request: | |
branches: [ "main", "development" ] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' # Adjust this to the Node.js version your project needs | |
- name: Install dependencies | |
run: npm install | |
- name: Run linting | |
run: npm run lint | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' # Adjust this to the Node.js version your project needs | |
- name: Install dependencies | |
run: npm install | |
- name: Build app | |
run: npm run build |