-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 877 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build Application
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Build Enviornment
run: docker compose up -d --no-color --wait
working-directory: scripts
- name: Install dependencies
run: npm install
- name: Sleep for 10s
uses: juliangruber/sleep-action@v2
with:
time: 10s
- name: Create .env file
run: touch .env
- name: Edit file for running on docker
run: echo "RUNNING_ON_DOCKER=true" >> .env
- name: Build server
run: npm run build
- name: Remove Build Enviornment
- run: docker compose down