dynamo-browse/.forgejo/workflows/ci.yaml

58 lines
1.3 KiB
YAML
Raw Normal View History

2022-03-23 11:02:46 +00:00
name: ci
on:
push:
branches:
- main
2025-10-25 22:26:04 +00:00
- feature/*
2022-03-23 11:02:46 +00:00
pull_request:
branches:
- main
jobs:
build:
2025-04-29 10:04:44 +00:00
runs-on: docker
2022-03-23 11:02:46 +00:00
services:
2022-07-17 00:01:17 +00:00
localstack:
image: localstack/localstack
2022-03-23 11:02:46 +00:00
ports:
2022-07-17 00:01:17 +00:00
- "4566:4566"
env:
SERVICES: ssm,dynamodb
2022-03-23 11:02:46 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v3
2022-03-23 11:02:46 +00:00
with:
2025-04-29 10:04:44 +00:00
go-version: 1.24
2022-03-23 11:02:46 +00:00
- 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
2022-03-23 11:04:27 +00:00
go get ./...
2022-06-11 02:10:39 +00:00
go test -p 1 ./...
2022-03-23 11:02:46 +00:00
env:
TEST_DYNAMO_URL: "http://localstack:4566"
GOPRIVATE: "github:com/lmika/*"
2025-10-25 22:27:50 +00:00
Site:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v2
2025-10-25 22:31:07 +00:00
- name: Setup Go
uses: actions/setup-go@v3
with:
2025-10-25 22:31:07 +00:00
go-version: 1.24
- name: Install Hugo
run: |
go install github.com/jmooring/hvm@latest
hvm use v0.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