Skip to content

Commit

Permalink
WIP: Migrate app-tests and app-page-layout-tests jobs to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Aug 14, 2024
1 parent e76017f commit 6c3aa82
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,45 @@ jobs:
source .venv/bin/activate
make lint
test-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
DOCKER_BUILD_VERBOSE=true ./securedrop/bin/dev-shell true
- name: Run application tests
run: |
make test-app
test-functional:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
DOCKER_BUILD_VERBOSE=true ./securedrop/bin/dev-shell true
- name: Run functional tests
run: |
make test-functional
test-pageslayout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
DOCKER_BUILD_VERBOSE=true ./securedrop/bin/dev-shell true
- name: Run page layout tests
run: |
make test-pageslayout
- name: Validate HTML (informational)
run: |
make validate-test-html || true
- name: Validate accessibility (informational)
run: |
make accessibility-summary || true
rust:
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
Expand Down
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,19 @@ otp: ## Show (and opportunistically copy) the current development OTP (to the cl

.PHONY: test
test: ## Run the test suite in a Docker container.
@echo "███ Running SecureDrop application tests..."
@echo "███ Running all SecureDrop tests..."
@$(DEVSHELL) $(SDBIN)/run-test -v $${TESTFILES:-tests}
@echo

.PHONY: test-focal
test-focal: test
.PHONY: test-app
test-app: ## Run the application tests
@echo "███ Running SecureDrop application tests..."
TESTFILES="$(shell cd securedrop; echo tests/test*py tests/functional/test*py)" $(MAKE) test

.PHONY: test-pageslayout
test-pageslayout: ## Run the page layout tests
@echo "███ Running page layout tests..."
TESTFILES="$(shell cd securedrop; echo tests/functional/pageslayout/test*py)" $(MAKE) test

.PHONY: rust-test
rust-test:
Expand Down

0 comments on commit 6c3aa82

Please sign in to comment.