Tests passing #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build + Test | |
on: [push, pull_request] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: zip -r Hugo.zip Hugo -x "*.DS_Store" | |
- name: Upload style to release | |
uses: svenstaro/upload-release-action@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: Hugo.zip | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Go | |
uses: actions/setup-go@v5 | |
- name: Install Deps | |
run: | | |
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz | |
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin | |
echo "./bin" >> $GITHUB_PATH | |
env: | |
VALE_VERSION: 3.3.0 | |
- name: Features | |
run: | | |
zip -r Hugo.zip Hugo -x "*.DS_Store" | |
cd testdata && ../bin/vale sync && cd - | |
go test -v ./... |