Added first workflow for lint, build test and deploy

This commit is contained in:
2023-07-12 16:06:34 +02:00
parent d121de54b8
commit 7671638079
+45
View File
@@ -0,0 +1,45 @@
name: Build
run-name: Build and Test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v3
- name: Init Environment
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Clone Repo
uses: actions/checkout@v3
- name: Init Environment
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy
run: |
echo Deploying...
sleep 1
echo ...
sleep 1
echo ...
sleep 1
echo DONE!