roblox-project-template/.forgejo/workflows/ci.yml
marked 4799707bc3
All checks were successful
CI / Analyze (push) Successful in 17s
CI / Lint (push) Successful in 11s
CI / Styling (push) Successful in 13s
fix: Manually run stylua, stylua-action is broken when trying to use on forgejo actions
2024-11-11 20:08:42 +01:00

67 lines
1.5 KiB
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
analyze:
name: Analyze
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
with:
token: ${{ secrets.githubtoken }}
- name: Install Pesde packages
run: lune run install-packages.luau
- name: Analyze
run: lune run analyze.luau
lint:
name: Lint
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
with:
token: ${{ secrets.githubtoken }}
- name: Lint
run: |
selene src/
style:
name: Styling
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
# I cannot be assed to make the stylua action work, so I'll just install rokit and run stylua manually
- name: Install Rokit
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
with:
token: ${{ secrets.githubtoken }}
- name: Style
run: |
stylua --check src/