-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (43 loc) · 1.04 KB
/
pr.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
40
41
42
43
44
45
46
47
48
name: CI
on:
pull_request:
branches:
- main
- staging
- release/*
push:
branches:
- main
- staging
- release/*
workflow_dispatch:
inputs:
nussknacker_version:
description: "Nussknacker version"
required: false
type: string
env:
INPUT_NUSSKNACKER_VERSION: ${{ inputs.nussknacker_version }}
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Test Quickstart start
timeout-minutes: 10
run: |
if [[ -n "$INPUT_NUSSKNACKER_VERSION" ]]; then
echo "NUSSKNACKER_VERSION=$INPUT_NUSSKNACKER_VERSION" > .env
fi
./start.sh || (docker compose logs && exit 1)
- name: Clean up Quickstart
run: |
./stop-and-clean.sh