Initial test playground project upload

This commit is contained in:
2023-07-14 23:46:50 +02:00
commit 3b7396ef30
10 changed files with 1628 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Deployment
on:
push:
branches:
- main
- dev
jobs:
test:
environment: testing
runs-on: ubuntu-latest
steps:
- name: Get Code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-deps-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Run server
run: npm start & npx wait-on http://127.0.0.1:XYZ
- name: Run tests
run: npm test
- name: Output information
run: echo "..."
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: Output information
run: |
echo "..."