forked from RedHatInsights/insights-content-service
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 927 Bytes
/
bdd.yaml
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
name: BDD tests
on:
- push
- pull_request
jobs:
bdd:
runs-on: ubuntu-20.04
strategy:
matrix:
go-version:
- "1.20"
name: BDD for Go ${{ matrix.go-version}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build project
run: ./build.sh --test-rules-only
- name: Retrieve Docker compose file
run: wget -O docker-compose.yml https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/docker-compose.yml
- name: Retrieve BDD runner
run: wget -O bdd_runner.sh https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/run_in_docker.sh && chmod +x bdd_runner.sh
- name: Run BDD
run: ./bdd_runner.sh insights-content-service-tests .