fix: Run vfmt to update consts, #109
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 0 * * 4' | |
permissions: | |
contents: read | |
jobs: | |
actionlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ${{ github.repository }} | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Lint CI | |
uses: docker://rhysd/actionlint:latest | |
with: | |
args: -color | |
build: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Vlang | |
uses: vlang/[email protected] | |
with: | |
stable: true | |
- name: Checkout ${{ github.repository }} | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- 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 . | |
cffconvert: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ${{ github.repository }} | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Lint CITATION.cff | |
uses: docker://citationcff/cffconvert:latest | |
with: | |
args: --validate |