feat: overhaul gnoland secrets
and gnoland config
to output JSON
#2538
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: contribs | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "contribs/**" | |
- ".github/**" | |
# Contribs directly depend on gno, so we need to test it whenever changes | |
# are made to one of those | |
- "go.*" # check on go.mod/sum update | |
- "gno.land/**" | |
- "tm2/**.go" | |
- "gnovm/**.go" | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
programs: ${{ steps.set-matrix.outputs.programs }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: set-matrix | |
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')" | |
main: | |
needs: setup | |
strategy: | |
fail-fast: false | |
matrix: | |
program: ${{ fromJson(needs.setup.outputs.programs) }} | |
name: Run Main | |
uses: ./.github/workflows/main_template.yml | |
with: | |
modulepath: contribs/${{ matrix.program }} | |
secrets: | |
codecov-token: ${{ secrets.CODECOV_TOKEN }} |