
Some checks failed
Continous Integration / Build (push) Successful in 11s
Continous Integration / Lint (push) Successful in 10s
Continous Integration / Styling (push) Successful in 10s
Continous Integration / Unit Testing (push) Successful in 14s
Release / Build (push) Successful in 10s
Release / Release (push) Failing after 9s
Release / Publish (push) Has been skipped
102 lines
2.3 KiB
YAML
102 lines
2.3 KiB
YAML
name: Continous Integration
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.04
|
|
steps:
|
|
- name: Checkout Project
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rokit
|
|
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
|
|
with:
|
|
token: ${{ secrets.githubtoken }}
|
|
|
|
- name: Build
|
|
run: |
|
|
lune run build
|
|
|
|
- name: Upload Build Artifact
|
|
uses: https://git.devmarked.win/actions/upload-artifact@v4
|
|
with:
|
|
name: build
|
|
path: hammer.rbxm
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.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 lib/
|
|
|
|
style:
|
|
name: Styling
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.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 }}
|
|
|
|
# Forgejo doesn't play nice with the stylua action for some reason
|
|
- name: Check Code Style
|
|
run: |
|
|
stylua --check lib/
|
|
|
|
test:
|
|
name: Unit Testing
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-24.04
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Luau
|
|
uses: https://github.com/EncodedVenom/install-luau@v4.3
|
|
|
|
- name: Install Rokit
|
|
uses: https://github.com/CompeyDev/setup-rokit@v0.1.2
|
|
with:
|
|
token: ${{ secrets.githubtoken }}
|
|
|
|
- name: Install Packages
|
|
run: |
|
|
pesde install
|
|
|
|
- name: Run Unit Tests
|
|
shell: bash
|
|
run: |
|
|
output=$(luau test/tests.luau)
|
|
echo "$output"
|
|
if [[ "$output" == *"0 fails"* ]]; then
|
|
echo "Unit Tests Passed"
|
|
else
|
|
echo "Error: One or More Unit Tests Failed."
|
|
exit 1
|
|
fi
|