💚 Fix ci
This commit is contained in:
parent
835c3d1f2f
commit
a6303ca49b
4 changed files with 17 additions and 5 deletions
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
|
@ -25,12 +25,16 @@ jobs:
|
|||
- name: Checkout ${{ github.event.repository.name }}
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install deps
|
||||
run: task setup
|
||||
|
||||
- name: Check if code is formatted
|
||||
run: |
|
||||
v fmt -diff .
|
||||
v fmt -verify .
|
||||
|
||||
- name: Build ${{ github.event.repository.name }}
|
||||
run: v .
|
||||
run: task build
|
||||
|
||||
- name: Run Tests
|
||||
run: v test .
|
||||
run: task test
|
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
|
@ -24,9 +24,12 @@ jobs:
|
|||
- name: Checkout ${{ github.event.repository.name }}
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install deps
|
||||
run: task setup
|
||||
|
||||
- name: Build ${{ github.event.repository.name }}
|
||||
run: task dist
|
||||
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, "refs/tags/")
|
||||
|
|
|
@ -7,6 +7,11 @@ env:
|
|||
|
||||
tasks:
|
||||
|
||||
setup:
|
||||
desc: Setup vss project
|
||||
cmds:
|
||||
- v install markdown
|
||||
|
||||
doc:
|
||||
desc: Update module document
|
||||
cmds:
|
||||
|
|
4
v.mod
4
v.mod
|
@ -1,7 +1,7 @@
|
|||
Module {
|
||||
name: 'vss'
|
||||
description: 'static site generator'
|
||||
version: '0.0.4'
|
||||
version: '0.0.3'
|
||||
license: 'MIT'
|
||||
dependencies: [markdown]
|
||||
dependencies: []
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue