vss/.github/workflows/ci.yaml

40 lines
769 B
YAML
Raw Normal View History

2022-08-04 02:31:10 +09:00
name: CI
on:
push:
branches: [main]
2022-09-06 01:02:48 +09:00
paths-ignore:
- "README.md"
- "example/**"
2022-08-04 02:31:10 +09:00
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: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@v3
2022-08-04 02:31:10 +09:00
2022-08-04 02:36:32 +09:00
- name: Install deps
2022-11-02 14:10:01 +09:00
run: v install
2022-08-04 02:36:32 +09:00
2022-08-04 02:31:10 +09:00
- name: Check if code is formatted
run: |
v fmt -diff .
v fmt -verify .
2022-08-04 02:36:32 +09:00
2022-08-04 02:31:10 +09:00
- name: Build ${{ github.event.repository.name }}
2022-11-02 14:10:01 +09:00
run: v .
2022-08-04 02:31:10 +09:00
- name: Run Tests
2022-11-02 14:10:01 +09:00
run: v test .