Mother2GbaTranslation/.github/workflows/test_pr.yml

27 lines
847 B
YAML

name: Test PR
on:
pull_request:
branches: develop
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Unpack the required data for the tests
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$TESTING_PASSPHRASE" --output bin/testing_required_data.zip bin/testing_required_data.zip.gpg
sudo apt install unzip
unzip -q bin/testing_required_data.zip -d bin
env:
TESTING_PASSPHRASE: ${{ secrets.TESTING_PASSPHRASE }}
- name: Test the code
run: "docker run --rm -u root -v ${PWD}:/home/m2gba/src lorenzooone/m2gba_translation:tester"
- name: Archive test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-report
path: out/test.log