Skip to content

feat(am-vis): add diagram generator prototype #47

feat(am-vis): add diagram generator prototype

feat(am-vis): add diagram generator prototype #47

Workflow file for this run

name: Go Test /tools
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.23' ]
steps:
# Get values for cache paths to be used in later steps
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
# set up
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
# Cache
- name: Clear cache directory first before trying to restore from cache
run: sudo rm -rf $(go env GOMODCACHE) && sudo rm -rf $(go env GOCACHE)
shell: bash
- name: Go Build Cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Task Cache
uses: actions/cache@v4
with:
path: ~/.local/bin/task
key: ${{ runner.os }}
# deps
- name: Install Task
run: ./scripts/dep-taskfile.sh
- name: Install dependencies
run: task install-deps
# run
- name: Test /tools
run: task test-path -- ./tools/...