dynamo-browse/.forgejo/workflows/ci.yaml
Leon Mika a93ec08bc3
Some checks failed
ci / Site (push) Failing after 4s
ci / build (push) Has been cancelled
Using fill path for actions-hugo
2025-10-26 09:27:50 +11:00

54 lines
1.2 KiB
YAML

name: ci
on:
push:
branches:
- main
- feature/*
pull_request:
branches:
- main
jobs:
build:
runs-on: docker
services:
localstack:
image: localstack/localstack
ports:
- "4566:4566"
env:
SERVICES: ssm,dynamodb
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.24
- name: Configure
run: |
git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika"
- name: Test
run: |
set -xue
go get ./...
go test -p 1 ./...
env:
TEST_DYNAMO_URL: "http://localstack:4566"
GOPRIVATE: "github:com/lmika/*"
Site:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo
with:
hugo-version: '0.146.0'
- name: Build
run: |
cd _site
mkdir -p themes
git clone https://github.com/alex-shpak/hugo-book.git themes/hugo-book
hugo --minify