-
Notifications
You must be signed in to change notification settings - Fork 585
36 lines (34 loc) · 1.03 KB
/
test-server.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
name: Start BaaS test server (test)
on:
workflow_dispatch:
inputs:
branch:
type: string
description: BaaS branch to use when starting the server
default: master
githash:
type: string
description: Specific githash to use when starting the server (this is used instead of branch if provided)
jobs:
server:
name: Run test server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node version
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Start BaaS test server
id: baas
uses: ./.github/actions/baas-test-server
with:
branch: ${{ inputs.branch }}
githash: ${{ inputs.githash }}
env:
BAASAAS_KEY: ${{ secrets.BAASAAS_KEY }}
- name: Perform a request to the server
run: curl ${{ steps.baas.outputs.baas-url }}/api/private/v1.0/version