Skip to content

Add create/build tests in GitHub Actions #3

Add create/build tests in GitHub Actions

Add create/build tests in GitHub Actions #3

name: Create & build with 3lv
on:
pull_request:
branches: [trunk]
jobs:
create-build:
name: Create & build with 3lv
runs-on: elvia-runner
env:
PROJECT_NAME: 'my-cool-project'
strategy:
fail-fast: false
matrix:
template:
- dotnet8-webapi
- dotnet8-worker
- go-webapi
- go-worker
- python-webapi
- python-worker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install 3lv CLI
uses: 3lvia/cli/setup@trunk
- name: Create project
run: 3lv create -s core -a "$PROJECT_NAME" -t '${{ matrix.template }}' --non-interactive .
- name: Build project
run: |
cd "$PROJECT_NAME"
3lv build "$PROJECT_NAME"