From 7bcc5afbb66f18873329fc63c37d1f8e869910b4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 1 Jan 2021 20:25:49 +0100 Subject: [PATCH] ci: run tutorial --- .github/workflows/ci.yml | 5 +++++ examples/vweb/vweb_example.v | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dad37076be..a77690f960 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,6 +114,11 @@ jobs: run: ./v build-tools - name: Test v binaries run: ./v build-vbinaries + - name: Test v tutorials + run: | + cd tutorials/code/blog + v . + # Alpine docker pre-built container alpine-docker-musl-gcc: diff --git a/examples/vweb/vweb_example.v b/examples/vweb/vweb_example.v index f8b46ef402..cfb46d6700 100644 --- a/examples/vweb/vweb_example.v +++ b/examples/vweb/vweb_example.v @@ -21,9 +21,6 @@ pub fn (mut app App) init_once() { app.handle_static('.') } -pub fn (mut app App) init() { -} - pub fn (mut app App) json_endpoint() vweb.Result { return app.json('{"a": 3}') }