feat: set up server app #10
Workflow file for this run
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: CI Server | |
on: | |
pull_request: | |
paths: | |
- "server/**" | |
defaults: | |
run: | |
working-directory: ./server | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
cache-dependency-path: ./server/go.sum | |
- name: Generate OpenAPI | |
run: make generate-oapi | |
- name: Run lint | |
run: make lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
cache-dependency-path: ./server/go.sum | |
- name: Generate OpenAPI | |
run: make generate-oapi | |
- name: Install dependencies | |
run: make vendor | |
- name: Run build | |
run: make build |