Version bump safeteleport #203
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- ".github/workflows/ci.yml" | |
- "libs/**" | |
- "scripts/**" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- ".github/workflows/ci.yml" | |
- "scripts/**" | |
- "libs/**" | |
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: Fetch diff | |
id: fetch_diff | |
shell: bash | |
run: | | |
if [ "${{ github.event_name }}" == "pull_request" ]; then | |
echo "diff=(gh pr diff ${{ github.event.pull_request.number }})" >> .diff | |
else | |
echo "diff=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }} --header 'Accept: application/vnd.github.v3.diff')" >> .diff | |
fi | |
- name: Install Toolchain | |
run: rokit install --no-trust-check | |
- name: Run test runner | |
run: lune run scripts/test_runner |