Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
release:
types: [published]
jobs:
get-projects:
runs-on: ubuntu-latest
outputs:
projects: ${{ steps.list-projects.outputs.projects }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get list of Golang project folders
id: list-projects
run: |
PROJECTS_JSON=$(ls -d golang/* | sed | jq -R -s -c 'split("\n") | map(select(. != ""))')
echo "::set-output name=projects::$PROJECTS_JSON"
run-jobs:
runs-on: ubuntu-latest
strategy:
matrix:
project: ${{ fromJson(needs.get-projects.outputs.projects) }}
steps:
- name: Call reusable workflow
uses: ./.github/workflows/golang.yml
with:
project: ${{ matrix.project }}