mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
[Testing] Fix docker build (#4109)
* Test fix for ongoing CI issues
(cherry picked from commit 3bf5492cb6
)
* Run docker test on PR (temporarily)
* Add token to unit testing env
* Add github token to env file
* Fix for github token
* Ignore blank tokens
* Don't run on PR
This commit is contained in:
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
@ -21,6 +21,10 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - 'master'
|
||||
|
||||
jobs:
|
||||
|
||||
# Build the docker image
|
||||
@ -70,6 +74,7 @@ jobs:
|
||||
test -f data/secret_key.txt
|
||||
- name: Run Unit Tests
|
||||
run: |
|
||||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> docker.dev.env
|
||||
docker-compose run inventree-dev-server invoke test --disable-pty
|
||||
docker-compose down
|
||||
- name: Set up QEMU
|
||||
|
Reference in New Issue
Block a user