Skip to content

fix example action path #4

fix example action path

fix example action path #4

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
mongodb-version: ["4.2", "4.4", "5.0", "6.0", "7.0"]
steps:
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Install V dependencies
run: |
sudo apt-get update
sudo apt-get install --quiet -y libglfw3-dev libxi-dev libxcursor-dev
- name: Build V
run: |
make
sudo ./v symlink
- name: Checkout Mongo
uses: actions/checkout@v2
with:
path: vlib/mongo
- name: Install Mongo dependencies
run: |
cd ./vlib/mongo/
sudo apt update
sudo make install
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test
run: |
cd ./vlib/mongo/
make test
- name: Build Mongo example
run: |
cd ../examples/
v -prod example.v
build:
runs-on: ubuntu-latest
container: thevlang/vlang:debian-dev
steps:
- name: Checkout Mongo
uses: actions/checkout@v2
with:
path: vlib/mongo
- name: Install Mongo dependencies
run: |
cd ./vlib/mongo/
apt update
make install
- name: Build Mongo shared lib
run: |
cd ./vlib/mongo/
make build