-
-
Notifications
You must be signed in to change notification settings - Fork 81
40 lines (33 loc) · 1.03 KB
/
pull_request.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
---
name: Merge Tests
on:
pull_request:
branches:
- master
jobs:
build:
name: CI Build
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Testing Requirements
run: |
sudo pip install -r requirements-test.txt
sudo curl -sL -o /bin/hadolint "https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64"
sudo chmod +x /bin/hadolint
- name: QA checks
run: ./run-qa-checks
- name: Setup
run: |
echo "127.0.0.1 dashboard.openwisp.org api.openwisp.org" | sudo tee -a /etc/hosts
# disable metric collection during builds
sed -i 's/METRIC_COLLECTION=True/METRIC_COLLECTION=False/' .env
- name: Build Images
run: make compose-build nfs-build
- name: Test
run: make runtests || (docker-compose logs && exit 1)
env:
SELENIUM_HEADLESS: 1