Skip to content

Commit

Permalink
Run tests from make file
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje committed Feb 9, 2025
1 parent bc4b53d commit 3260965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test-perl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@ jobs:
install-modules-with: cpanm
working-directory: perl

- run: cpanm --notest --installdeps --with-develop .
working-directory: perl

- name: run tests
run: dzil test
run: make test
working-directory: perl

# Run acceptance tests first! They build Languages.pm
- name: run acceptance tests
run: make acceptance
working-directory: perl
4 changes: 4 additions & 0 deletions perl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ clean: ## Remove all build artifacts and files generated by the acceptance tests

.DELETE_ON_ERROR:

.PHONY: test
test: perl5 ## Perl requires some setup to get working, bake it into the make file rather than CI
PATH=$$PATH:perl5/bin PERL5LIB=${PERL5LIB} dzil test

acceptance: $(ARTIFACT_DIR) $(TOKENS) $(ASTS) $(PICKLES) $(ERRORS) $(SOURCES) ## Build acceptance test dir and compare results with reference

$(ARTIFACT_DIR): $(ARTIFACT_DIR_VERSIONED)
Expand Down

0 comments on commit 3260965

Please sign in to comment.