Skip to content

Setup cov tracking#2

Open
vidbina wants to merge 39 commits into
mainfrom
vid/setup-cov-tracking-to-sonarcloud
Open

Setup cov tracking#2
vidbina wants to merge 39 commits into
mainfrom
vid/setup-cov-tracking-to-sonarcloud

Conversation

@vidbina

@vidbina vidbina commented Sep 1, 2023

Copy link
Copy Markdown
Contributor

No description provided.

vidbina added 30 commits March 17, 2023 17:11
This is where the confusion stemmed. The documentation
https://docs.github.com/en/actions/using-workflows/creating-starter-workflows-for-your-organization#creating-a-starter-workflow
outlines the use of the .github/workflow-templates directory, but the GitHub
Actions pipeline fails with:

> Invalid workflow file
> invalid value workflow reference: references to workflows must be rooted in '.github/workflows'

When I
run (https://github.com/formation-tools/agent-slack-01/actions/runs/4449922798/workflow)
the following configuration:

```yaml
jobs:
  test:
    uses: formation-tools/.github/.github/workflow-templates/python-with-poetry.yml@1ea15e0401baf72e179c413b75866e6253d9a225
```

Another case of confusion docs! Let's see if this brings any resolution.
Removing to resolve `secret name `GITHUB_TOKEN` within `workflow_call` can not
be used since it would collide with system reserved name` error:

```
error parsing called workflow
".github/workflows/dev.yaml"
-> "formation-tools/.github/.github/workflows/python-with-poetry.yml@b3cb012"
: secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
```
if conditionals only with with env vars as documented at
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-secrets
so we have to set the SONAR_TOKEN env var to the value of the secret.
Apparently we can't use independent jobs when they are all defined in a single
file. In that case the whole lot is just treated as a single workflow. Breaking
it up into separate files should pave the way to allowing us to compose worflows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant