Skip to content

CI

CI #171

Workflow file for this run

name: CI
on:
workflow_dispatch:
# im just including everything under scripts,
# because its easier and it means i dont forget to add a script here
# because theres certain scripts where if theyre changed, all tests should be ran
push:
branches: [ main ]
paths:
- "scripts/**"
pull_request:
branches: [ main ]
paths:
- "scripts/**"
jobs:
Main:
runs-on: ${{ matrix.runner-os }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows
runner-os: windows-latest
- name: Linux
runner-os: ubuntu-latest
- name: macOS
runner-os: macos-14
steps:
- uses: CompeyDev/[email protected]
- uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Get files changed
id: files_changed
shell: bash
run: |
case '${{ github.event_name }}' in
push)
firstCommit='${{ github.event.commits[0].id }}'
lastCommit='${{ github.event.commits[-1].id }}'
;;
pull_request)
firstCommit='${{ github.event.base_ref }}'
lastCommit='${{ github.event.head_ref }}'
;;
esac
diff=$(git diff --name-only --diff-filter=d ${firstCommit}~1 ${lastCommit});
echo "diff=$diff" >> $GITHUB_OUTPUT;
echo diff >> .diff;
- name: Install Toolchain
run: rokit install --no-trust-check
- name: Run test runner
run: lune run scripts/test_runner all