Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Workflow schema #853

Merged
merged 13 commits into from
Nov 7, 2019
Merged

GitHub Workflow schema #853

merged 13 commits into from
Nov 7, 2019

Conversation

Logerfo
Copy link
Contributor

@Logerfo Logerfo commented Nov 6, 2019

Based on the official documentation.
Also, see #850 for the action schema.

@Logerfo Logerfo mentioned this pull request Nov 6, 2019
@riker09
Copy link

riker09 commented Nov 7, 2019

I think there is an error with the push event. This is marked as invalid configuration:

on:
  push:
    branches:
      - 'master'
      - 'develop'
    paths:
      - 'path/to/file.ext'

Red squiggle lines beneath branches and paths

[EDIT]
Nice PR, though. I would love to see this feature getting merged. There is a thread in the officical GitHub community forum: https://github.community/t5/GitHub-Actions/Need-linter-for-GitHub-Actions-workflow-s-configuration/m-p/37248

@riker09
Copy link

riker09 commented Nov 7, 2019

Defining services for a job also gives a warning about a missing property "image":

jobs:
  build:
    name: Install, Build & Test
    runs-on: ubuntu-latest

    services:
      redis:
        image: redis
        ports:
          - 6379/tcp
        options: --health-cmd true

Here services and redis get the red squiggle lines.

@Logerfo
Copy link
Contributor Author

Logerfo commented Nov 7, 2019

@riker09 Thanks, I didn't know about the thread. Just fixed everything you mentioned and some extra stuff.

Edit: hang on, missed a thing...

@Logerfo
Copy link
Contributor Author

Logerfo commented Nov 7, 2019

I think it's good to go now.

@madskristensen
Copy link
Contributor

There are merge conflicts. Once resolved, I'll merge the PR. And thank you!!!

@Logerfo
Copy link
Contributor Author

Logerfo commented Nov 7, 2019

@madskristensen done

@madskristensen madskristensen merged commit c955a58 into SchemaStore:master Nov 7, 2019
@madskristensen
Copy link
Contributor

Great. Thank you again

@Logerfo Logerfo deleted the patch-2 branch November 7, 2019 17:18
@Logerfo
Copy link
Contributor Author

Logerfo commented Nov 7, 2019

I'm glad to help. Feel free to @ me if any issue is raised.

zhuravlikjb pushed a commit to zhuravlikjb/schemastore that referenced this pull request Nov 25, 2019
* Create github-workflow.json

* added to catalog

* fixed environmental variables not being able to receive numbers as input

* removed jobs.steps.uses pattern

there is more stuff feasible than documented (see https://github.com/calibreapp/image-actions#how-to-add-this-to-your-repository)

* fixed "on" always expecting object

* fixed catalog listing missing url

* typo

* fixed services/container mapping

* fixed services/container.ports not allowing string

example: "80/tcp"

* fixed branches/tags (ignore) not being allowed for push/pull_request events

* fixed types not allowing in push and pull_request events

* push and pull_request filters are now suggested
@ChALkeR
Copy link

ChALkeR commented Jul 27, 2023

A lot of checks here are unexpectedly ignored due to schema version and incorrect $ref usage, see ExodusMovement/schemasafe#158 (comment)

Thanks to @Aplietexe for noticing that

"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/events-that-trigger-workflows#check-run-event-check_run",
"$ref": "#/definitions/eventObject",
"description": "Runs your workflow anytime the check_run event occurs. More than one activity type triggers this event. For information about the REST API, see https://developer.github.com/v3/checks/runs.",
"properties": {
Copy link

@ChALkeR ChALkeR Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no-op per spec in draft-07 (which is used here), and that is verified in implementations as the upstream testsuite checks for sibling props to $ref being noops.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed #3102 for this

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.

4 participants