Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
name: CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-18.04, ubuntu-latest]
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-26.04]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Vala PPA repository
run: sudo add-apt-repository --yes ppa:vala-team
- uses: actions/checkout@v7

- name: Update APT cache
run: sudo apt-get update --quiet

- name: Install dependencies
run: sudo apt-get install --yes valac libglib2.0-bin libglib2.0-dev libsoup2.4-dev libfcgi-dev gcovr libgee-0.8-dev libctpl-dev libjson-glib-dev libmemcached-dev libmarkdown2-dev liblua5.2-dev valgrind ninja-build

- name: Install Meson
run: pip3 install meson
run: sudo apt-get install --yes valac libglib2.0-bin libglib2.0-dev libsoup2.4-dev libfcgi-dev libgee-0.8-dev libctpl-dev libjson-glib-dev libmemcached-dev libmarkdown2-dev liblua5.1-dev valgrind ninja-build meson

- name: Build
run: |
Expand All @@ -37,11 +31,3 @@ jobs:
meson test -C build --wrapper valgrind --print-errorlogs --num-processes=1 -v
DESTDIR=$(mktemp -d) ninja -C build -v install

# - name: Generate coverage reports
# run: ninja -C build -v coverage

# - name: Report coverage to Codecov
# uses: codecov/codecov-action@v2.1.0
# with:
# directory: build
# fail_ci_if_error: true
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Valum Web micro-framework

[![Build Status](https://github.com/valum-framework/valum/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/valum-framework/valum/actions/workflows/main.yml)
[![Build Status](https://github.com/valum-framework/valum/actions/workflows/main.yml/badge.svg)](https://github.com/valum-framework/valum/actions/workflows/main.yml)
[![Documentation Status](https://readthedocs.org/projects/valum-framework/badge/?version=latest)](https://readthedocs.org/projects/valum-framework/?badge=latest)
[![codecov.io](https://codecov.io/github/valum-framework/valum/coverage.svg?branch=master)](https://codecov.io/github/valum-framework/valum?branch=master)

Valum is a Web micro-framework entirely written in the
[Vala](https://wiki.gnome.org/Projects/Vala) programming language.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@
#texinfo_no_detailmenu = False

# External links
extlinks = {'valadoc': ('http://valadoc.org/%s.html', '')}
extlinks = {'valadoc': ('https://valadoc.org/%s.html', '%s')}
9 changes: 6 additions & 3 deletions src/valum-regex-route.vala
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ namespace Valum {
if (captures.length () > 0) {
// populate the context parameters
foreach (var capture in captures) {
var @value = match_info.fetch_named (capture);
if (@value != null)
context[capture] = @value;
int start_pos, end_pos;
if (match_info.fetch_named_pos (capture, out start_pos, out end_pos) && start_pos >= 0) {
var @value = match_info.fetch_named (capture);
if (@value != null)
context[capture] = @value;
}
}
}
return true;
Expand Down