Skip to content

Commit

Permalink
HEXA-134 Automatically run tests on every pull request (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-marchant authored Aug 10, 2021
1 parent e3076a7 commit 9335634
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pre-commit
name: Lint

on:
pull_request:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/test_in_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test
on:
pull_request:
push:
branches: [ master ]

jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to DockerHub
run: docker login -u $DOCKER_USER -p $DOCKER_PASS

- name: Build docker images
run: docker-compose build

- name: Run Django tests
run: docker-compose run app test

0 comments on commit 9335634

Please sign in to comment.