Merge branch 'main' of github.com:Eddio0141/UniTAS #910
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: build-on-push | |
on: [ push, pull_request ] | |
jobs: | |
buildAndTest: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
# NOTE: this is replaced because of https://github.com/federicocarboni/setup-ffmpeg/issues/19 | |
# - name: Setup ffmpeg | |
# uses: FedericoCarboni/setup-ffmpeg@v3.1 | |
- name: Setup ffmpeg with retries | |
uses: ./.github/actions/setup-ffmpeg | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Tests | |
run: dotnet test UniTAS --configuration Release | |
- name: Build | |
run: dotnet build UniTAS --configuration Release | |
- name: Get built artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: UniTAS | |
path: ./UniTAS/Patcher/bin/Release | |
- name: download test-runner | |
uses: dawidd6/action-download-artifact@v6 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
workflow: build-on-push.yml | |
branch: main | |
name: test-runner-unix | |
repo: Eddio0141/UniTASTestClients | |
path: test-runner | |
- name: copy UniTAS to test-runner directory | |
run: cp UniTAS/Patcher/bin/Release test-runner/UniTAS -r | |
- name: run test-runner | |
run: | | |
cd test-runner | |
chmod +x test-runner | |
./test-runner --github-token ${{ secrets.GITHUB_TOKEN }} | |
- name: test-runner logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-runner-logs | |
path: test-runner/logs | |
- if: contains(github.event.pull_request.labels.*.name, 'automation') | |
name: Auto-merge for automated PRs | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |