Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve actions #17

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ name: CI

on:
workflow_dispatch:
inputs:
skip:
description: 'Test cases to skip (format: LIBNAME.TESTCASE or LIBNAME(...TESTCASE))'
required: false
type: string
push:
branches: [ main ]
paths:
- "scripts/diff_to_tbl.luau"
- "scripts/test_runner.luau"
- "scripts/depgraph.luau"
- "testkit.luau"
pull_request:
branches: [ main ]
paths:
- "scripts/diff_to_tbl.luau"
- "scripts/test_runner.luau"
Expand All @@ -19,10 +22,6 @@ on:

jobs:
Main:
runs-on: ${{ matrix.runner-os }}
name: ${{ matrix.name }}
env:
GH_TOKEN: ${{ github.token }}
strategy:
fail-fast: false
matrix:
Expand All @@ -47,11 +46,6 @@ jobs:
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: Run test runner
run: lune run scripts/test_runner
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
release_id: ${{ steps.create_draft.outputs.release_id }}
version: ${{ steps.get_version.outputs.version }}
env:
GH_TOKEN: ${{ github.token }}
version: placeholder

steps:
Expand Down