Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Update aftman tools #29

Update aftman tools

Update aftman tools #29

Workflow file for this run

name: ci
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches: [main]
env:
COMMIT_HASH: ${{github.sha}} # default to the commit hash of the event
jobs:
format-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: ok-nick/[email protected]
- name: Format
run: stylua --check src/
- name: Lint
run: selene src/
test-docs-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install Moonwave
run: npm install -g moonwave
- name: Build docs
run: moonwave build
test-package-build:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [format-lint]
steps:
- uses: actions/checkout@v2
- uses: ok-nick/[email protected]
- name: Build
run: rojo build default.project.json -o build.rbxm
- name: Set environment variables
run: echo "COMMIT_HASH=$(git rev-parse --short ${{github.sha}})" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{github.event.repository.name}}-${{env.COMMIT_HASH}}.rbxm
path: build.rbxm