diff --git a/.github/workflows/test_build.yaml b/.github/workflows/test_build.yaml new file mode 100644 index 0000000..96d94bf --- /dev/null +++ b/.github/workflows/test_build.yaml @@ -0,0 +1,12 @@ +name: Test Build +on: [push, pull_request] + +jobs: + test_build: + name: Basic CI + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - run: | + ./docker/build.sh + ./docker/run.sh make test-build \ No newline at end of file diff --git a/Makefile b/Makefile index 5d6df2e..7b13ded 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,9 @@ serve: serve-devel: bundle exec jekyll serve --host 0.0.0.0 --no-watch --trace -d $(site_path) --config=$(config_file),$(devel_config_file),$(index_file) --skip-initial-build +test-build: prepare-sources + bundle exec jekyll build --verbose --trace -d $(site_path) --config=$(config_file),$(devel_config_file),$(index_file) + clean-sources: rm -rf $(plugins_data_dir) rm -rf $(remotes_dir) diff --git a/_config_devel.yml b/_config_devel.yml index 14f5822..d084363 100644 --- a/_config_devel.yml +++ b/_config_devel.yml @@ -1,20 +1,20 @@ # package list page -packages_per_page: 3 -repos_per_page: 3 +packages_per_page: 5 +repos_per_page: 5 # set the following to a non-zero value for testing (limit the number of indexed repos) -max_repos: 2 +max_repos: 10 # If true, this begins with an existing db -use_db_cache: true +use_db_cache: false # If true, this skips finding repos based on the repo sources -skip_discover: true +skip_discover: false # If true, this skips updating the known repos -skip_update: true +skip_update: false # If true, this skips scraping the cloned repos -skip_scrape: true +skip_scrape: false # If true, this skips generating the search index -skip_search_index: true +skip_search_index: false checkout_threads: 1