-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Provide a GitHub Action #239
Comments
@Shinigami92 what do you mean exactly? Please note I'm not an expert on GitHub workflows... |
So what I would like to end up is like following: Sadly this is not maintained anymore, so there is this nowadays: So currently my pipeline looks like this: name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: "Lint"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v4.7.1
with:
python-version: "3.12"
cache: "pip"
- name: Upgrade setuptools
run: pip install --upgrade setuptools
- name: Install gdtoolkit
run: pip install gdtoolkit==4.*
- name: Lint
run: gdlint .
formatting:
runs-on: ubuntu-latest
name: "Formatting"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v4.7.1
with:
python-version: "3.12"
cache: "pip"
- name: Upgrade setuptools
run: pip install --upgrade setuptools
- name: Install gdtoolkit
run: pip install gdtoolkit==4.*
- name: Check formatting
run: gdformat --check . And I would like to write it like this: name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: "Lint"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup gdtoolkit
uses: Scony/godot-gdscript-toolkit@v4
- name: Lint
run: gdlint .
formatting:
runs-on: ubuntu-latest
name: "Formatting"
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup gdtoolkit
uses: Scony/godot-gdscript-toolkit@v4
- name: Check formatting
run: gdformat --check . So It could be that the action is slightly named differently if you e.g. prefer to create the action in another repository I think https://github.com/dtolnay/rust-toolchain might also be a perfect source of example how to write such an action.
The only thing you would need on your own, is to find out how to actually publish that action to the marketplace |
Could we get a GitHub Action so we can run
gdlint .
andgdformat --check .
from a GitHub workflow?Here is an example for now how I use it:
The text was updated successfully, but these errors were encountered: