mirror of
https://github.com/0x5eal/wg-lua.git
synced 2024-12-12 12:50:36 +00:00
91 lines
2.2 KiB
YAML
91 lines
2.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PNPM
|
|
uses: pnpm/action-setup@v3
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Install tooling
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
- name: Check formatting
|
|
run: pnpm check_fmt
|
|
|
|
ci:
|
|
needs: ["fmt"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PNPM
|
|
uses: pnpm/action-setup@v3
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Install tooling
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Test
|
|
run: pnpm test
|
|
|
|
lint:
|
|
needs: ["ci"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PNPM
|
|
uses: pnpm/action-setup@v3
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Install tooling
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Analyze
|
|
run: luau-lsp analyze --settings=".vscode/settings.json" tests/ examples/ .lune/
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|