Skip to content

Commit

Permalink
add basic ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Jan 1, 2024
1 parent 0ff2ac7 commit c69ea81
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test_build.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions _config_devel.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit c69ea81

Please sign in to comment.