diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b1cb4d..a2825b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 . \ No newline at end of file + run: task test \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 106ca71..a26021f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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/") diff --git a/Taskfile.yml b/Taskfile.yml index 2fc4f9c..abcdb0e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -7,6 +7,11 @@ env: tasks: + setup: + desc: Setup vss project + cmds: + - v install markdown + doc: desc: Update module document cmds: diff --git a/v.mod b/v.mod index 5ff99da..c210eb9 100644 --- a/v.mod +++ b/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: [] }