Gura Continuous Integration #574
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: Gura Continuous Integration | |
concurrency: | |
group: ci-${{ github.event.number }} | |
cancel-in-progress: true | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
schedule: | |
- cron: "31 1,12 * * *" | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Gura | |
uses: actions/checkout@v2 | |
with: | |
path: gura | |
- name: Setup V | |
uses: vlang/setup-v@v1 | |
with: | |
check-latest: true | |
- name: V doctor | |
run: v doctor | |
- name: Copy Gura source code to V Modules | |
run: cp -rf ./gura ~/.vmodules | |
- name: Validate Docs | |
run: | | |
cd ./gura | |
v check-md . | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-20.04, macos-latest] | |
steps: | |
- name: Checkout Gura | |
uses: actions/checkout@v2 | |
with: | |
path: gura | |
- name: Setup V | |
uses: vlang/setup-v@v1 | |
with: | |
check-latest: true | |
- name: V doctor | |
run: v doctor | |
- name: Move Gura source code to V Modules | |
run: mv ./gura ~/.vmodules | |
- name: Execute Tests using Pure V Backend | |
run: ~/.vmodules/gura/bin/test |