feat: adjust sample to mvp (#1)
Reviewed-on: #1 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #1.
This commit is contained in:
+34
-20
@@ -8,30 +8,44 @@ env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
install-dependencies:
|
||||
uses: ./.gitea/workflows/install-go-dependencies.yaml
|
||||
|
||||
build-check:
|
||||
name: build check
|
||||
needs: install-dependencies
|
||||
uses: ./.gitea/workflows/run-go-script.yaml
|
||||
with:
|
||||
script: build
|
||||
|
||||
check-format:
|
||||
name: check format
|
||||
needs: install-dependencies
|
||||
uses: ./.gitea/workflows/run-go-script.yaml
|
||||
with:
|
||||
script: check-format
|
||||
|
||||
check-lint:
|
||||
name: check lint
|
||||
needs: install-dependencies
|
||||
uses: ./.gitea/workflows/run-go-script.yaml
|
||||
with:
|
||||
script: lint
|
||||
|
||||
test:
|
||||
name: test
|
||||
needs: install-dependencies
|
||||
uses: ./.gitea/workflows/run-go-script.yaml
|
||||
with:
|
||||
script: test
|
||||
|
||||
image-check:
|
||||
name: image check
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- linux_amd64
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
check-latest: true
|
||||
- name: Create cache key
|
||||
id: hash-go
|
||||
run: echo "hash=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
|
||||
- name: cache go
|
||||
id: cache-go
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
|
||||
with:
|
||||
path: |
|
||||
/go_path
|
||||
/go_cache
|
||||
key: go_path-${{ steps.hash-go.outputs.hash }}
|
||||
restore-keys: |-
|
||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||
- name: build
|
||||
run: make build
|
||||
- name: Build image
|
||||
run: make build-image
|
||||
|
||||
Reference in New Issue
Block a user