-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (35 loc) · 963 Bytes
/
e2e.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
name: E2E CI
on:
push:
branches:
- main
- gh-readonly-queue/main/*
pull_request:
branches:
- main
jobs:
e2e-test:
name: e2e-test
runs-on: ubuntu-22.04
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Build
run: |
IP=`hostname -I | awk '{print $1}'`
echo '{"insecure-registries" : ["'$IP':3000"]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
make docker-build-dev
- name: Run sigma
run: |
docker run --name sigma -d -p 3000:3000 sigma:latest
sleep 5
docker logs sigma
- name: Test push and e2e with k6
run: |
./e2e/push.sh
curl https://github.com/grafana/k6/releases/download/v0.45.0/k6-v0.45.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
./k6 run e2e/sc.js