Skip to content

Adding Air, Templ, and HTMX #40

Adding Air, Templ, and HTMX

Adding Air, Templ, and HTMX #40

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go(lang)
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Generate templates and build binary
run: |
make build-only
- name: Run unit tests
run: go test -test.short -v -cover ./...
check-compliance:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go(lang)
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Build server binary
run: |
go version
make build-only
- name: Install k6
run: |
curl https://github.com/grafana/k6/releases/download/v0.51.0/k6-v0.51.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- name: k6 Compliance
run: |
echo "DatabaseURI: "${GITHUB_WORKSPACE}/gorm.db"" > config.yaml
bin/weesvc migrate; bin/weesvc serve &
./k6 run -e PORT=9092 https://raw.githubusercontent.com/weesvc/workbench/main/scripts/api-compliance.js