36 lines
722 B
YAML
36 lines
722 B
YAML
![]() |
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [main]
|
||
|
pull_request:
|
||
|
branches: [main]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
steps:
|
||
|
- name: Install V
|
||
|
uses: vlang/setup-v@v1
|
||
|
with:
|
||
|
check-latest: true
|
||
|
|
||
|
- name: Install Task
|
||
|
uses: arduino/setup-task@v1
|
||
|
|
||
|
- name: Checkout ${{ github.event.repository.name }}
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Check if code is formatted
|
||
|
run: |
|
||
|
v fmt -diff .
|
||
|
v fmt -verify .
|
||
|
- name: Build ${{ github.event.repository.name }}
|
||
|
run: v .
|
||
|
|
||
|
- name: Run Tests
|
||
|
run: v test .
|