[qa] Run QA checks in main build #445
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |