Skip to content

Code CI

Code CI #110

Workflow file for this run

name: Code CI
on:
push:
paths-ignore:
- "**.md"
- "LICENSE"
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * 4"
jobs:
build:
strategy:
matrix:
os: ["ubuntu", "macos", "windows"]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Setup Vlang
uses: vlang/setup-v@v1.3
with:
stable: true
- name: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@v4
- name: Check if code is formatted
run: |
v fmt -diff .
v fmt -verify .
- name: Run unit tests
run: v test .
- name: Build ${{ github.event.repository.name }}
run: |
v cmd/whisker -o cmd/bin/whisker
cmd/bin/whisker --help
package-vpm:
runs-on: "ubuntu-latest"
steps:
- name: Setup Vlang
uses: vlang/setup-v@v1.3
with:
stable: true
- name: Install from VPM
run: |
v install hungrybluedev.whisker
package-github:
runs-on: "ubuntu-latest"
steps:
- name: Setup Vlang
uses: vlang/setup-v@v1.3
with:
stable: true
- name: Install from GitHub
run: |
v install --git https://github.com/hungrybluedev/whisker