67 lines
1.5 KiB
YAML
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/
|