roblox-project-template/.forgejo/workflows/ci.yml

68 lines
1.5 KiB
YAML
Raw Normal View History

2024-11-11 19:35:24 +01:00
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
analyze:
name: Analyze
2024-11-11 19:48:53 +01:00
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
2024-11-11 19:35:24 +01:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
2024-11-11 19:48:53 +01:00
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
2024-11-11 19:35:24 +01:00
with:
2024-11-11 19:55:10 +01:00
token: ${{ secrets.githubtoken }}
2024-11-11 19:35:24 +01:00
- name: Install Pesde packages
run: lune run install-packages.luau
2024-11-11 19:35:24 +01:00
- name: Analyze
run: lune run analyze.luau
2024-11-11 19:35:24 +01:00
lint:
name: Lint
2024-11-11 19:48:53 +01:00
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
2024-11-11 19:35:24 +01:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rokit
2024-11-11 19:48:53 +01:00
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
2024-11-11 19:35:24 +01:00
with:
2024-11-11 19:55:10 +01:00
token: ${{ secrets.githubtoken }}
2024-11-11 19:35:24 +01:00
- name: Lint
run: |
selene src/
style:
name: Styling
2024-11-11 19:48:53 +01:00
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
2024-11-11 19:35:24 +01:00
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
2024-11-11 19:35:24 +01:00
with:
2024-11-11 19:55:10 +01:00
token: ${{ secrets.githubtoken }}
- name: Style
run: |
stylua --check src/