ci: run tutorial

pull/7791/head
Alexander Medvednikov 2021-01-01 20:25:49 +01:00
parent 40b8d9ca3d
commit 7bcc5afbb6
2 changed files with 5 additions and 3 deletions

View File

@ -114,6 +114,11 @@ jobs:
run: ./v build-tools run: ./v build-tools
- name: Test v binaries - name: Test v binaries
run: ./v build-vbinaries run: ./v build-vbinaries
- name: Test v tutorials
run: |
cd tutorials/code/blog
v .
# Alpine docker pre-built container # Alpine docker pre-built container
alpine-docker-musl-gcc: alpine-docker-musl-gcc:

View File

@ -21,9 +21,6 @@ pub fn (mut app App) init_once() {
app.handle_static('.') app.handle_static('.')
} }
pub fn (mut app App) init() {
}
pub fn (mut app App) json_endpoint() vweb.Result { pub fn (mut app App) json_endpoint() vweb.Result {
return app.json('{"a": 3}') return app.json('{"a": 3}')
} }