Fix go-webapi template #14
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: Create & build | |
on: | |
pull_request: | |
branches: [trunk] | |
paths-ignore: | |
- '**/*.md' | |
push: | |
branches: [trunk] | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
create-build: | |
name: Create & build | |
runs-on: elvia-runner | |
env: | |
PROJECT_NAME: 'my-cool-project' | |
strategy: | |
fail-fast: false | |
matrix: | |
template: | |
- dotnet8-webapi | |
- dotnet8-worker | |
- go-webapi | |
- 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: | | |
if [[ '${{ matrix.template }}' == "dotnet"* ]]; then | |
# Convert to pascal case for .NET | |
cd $(echo "$PROJECT_NAME" | sed -r 's/(^|-)(.)/\U\2/g') | |
else | |
cd "$PROJECT_NAME" | |
fi | |
3lv build "$PROJECT_NAME" |