WIP: Github actions

This commit is contained in:
Michał Zieliński
2024-04-01 08:15:28 +02:00
committed by GitHub
parent f85d14c31c
commit 28985673a7

26
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Angular CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: npm install and npm run CI commands
run: |
npm i
ng build --configuration=production