Add --prod flag once the new release is ready
github-actions opened this issue · comments
- "--prod"
name: 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:
shellcheck:
name: Shellcheck
uses: ./.github/workflows/shellcheck.yml
todo:
if: github.event_name == 'push'
name: TODO
uses: ./.github/workflows/todo.yml
validate-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout RxV
uses: actions/checkout@v3
with:
path: rxv
- name: Setup V
uses: vlang/setup-v@v1
with:
check-latest: true
- name: V doctor
run: v doctor
- name: Copy source code to V Modules
run: cp -rf ./rxv ~/.vmodules
- name: Validate Docs
run: |
cd ./rxv
v check-md .
fmt-check:
runs-on: ubuntu-latest
steps:
- name: Checkout RxV
uses: actions/checkout@v3
with:
path: rxv
- name: Setup V
uses: vlang/setup-v@v1
with:
check-latest: true
- name: V doctor
run: v doctor
- name: Move source code to V Modules
run: mv ./rxv ~/.vmodules
- name: Verify Fmt
run: |
cd ~
v fmt -verify ~/.vmodules/rxv
run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
flags:
- ""
# TODO: Add --prod flag once the new release is ready
# - "--prod"
steps:
- name: Checkout RxV
uses: actions/checkout@v3
with:
path: rxv
- name: Setup V
uses: vlang/setup-v@v1
with:
check-latest: true
- name: V doctor
run: v doctor
- name: Move RxV source code to V Modules
run: mv ./rxv ~/.vmodules
- name: Execute Tests using Pure V Backend
run: ~/.vmodules/rxv/bin/test ${{ matrix.flags }}
- name: Execute Tests using Pure V Backend and Garbage Collection enabled
run: ~/.vmodules/rxv/bin/test ${{ matrix.flags }} --use-gc boehm