semver-luau/.github/workflows/ci.yml

74 lines
1.5 KiB
YAML
Raw Normal View History

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 pesde
uses: 2jammers/setup-pesde@v0.2.0
with:
lune-version: v0.8.9
pesde-version: v0.5.0-rc.14
token: ${{ secrets.PESDE_TOKEN }}
- name: Install dependencies
run: pesde install
- name: Check formatting
run: lune run fmt -- --check
typecheck:
needs: ["fmt"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pesde
uses: 2jammers/setup-pesde@v0.2.0
with:
lune-version: v0.8.9
pesde-version: v0.5.0-rc.14
token: ${{ secrets.PESDE_TOKEN }}
- name: Install dependencies
run: pesde install
- name: Setup lune typedefs
run: lune setup
- name: Typecheck
run: lune run typecheck
test:
needs: ["typecheck"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pesde
uses: 2jammers/setup-pesde@v0.2.0
with:
lune-version: v0.8.9
pesde-version: v0.5.0-rc.14
token: ${{ secrets.PESDE_TOKEN }}
- name: Install dependencies
run: pesde install
- name: Run tests
run: lune run test