Fully fix Testing PRs (#170)
This commit is contained in:
parent
feb3adbb2a
commit
f3a669cf0b
|
@ -8,19 +8,30 @@ jobs:
|
||||||
name: Testing
|
name: Testing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout master
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: extractor
|
||||||
- name: Unpack the required data for the tests
|
- name: Unpack the required data for the tests
|
||||||
run: |
|
run: |
|
||||||
gpg --quiet --batch --yes --decrypt --passphrase="$TESTING_PASSPHRASE" --output bin/testing_required_data.zip bin/testing_required_data.zip.gpg
|
gpg --quiet --batch --yes --decrypt --passphrase="$TESTING_PASSPHRASE" --output extractor/bin/testing_required_data.zip extractor/bin/testing_required_data.zip.gpg
|
||||||
sudo apt install unzip
|
sudo apt install unzip
|
||||||
unzip -q bin/testing_required_data.zip -d bin
|
unzip -q extractor/bin/testing_required_data.zip -d extractor/bin
|
||||||
env:
|
env:
|
||||||
TESTING_PASSPHRASE: ${{ secrets.TESTING_PASSPHRASE }}
|
TESTING_PASSPHRASE: ${{ secrets.TESTING_PASSPHRASE }}
|
||||||
|
- name: Checkout other
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
path: pr_code
|
||||||
- name: Test the code
|
- name: Test the code
|
||||||
run: "docker run --rm -u root -v ${PWD}:/home/m2gba/src lorenzooone/m2gba_translation:tester"
|
run: |
|
||||||
|
cp extractor/bin/* pr_code/bin/
|
||||||
|
cd pr_code
|
||||||
|
docker run --rm -u root -v ${PWD}:/home/m2gba/src lorenzooone/m2gba_translation:tester
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: test-report
|
name: test-report
|
||||||
path: out/test.log
|
path: pr_code/out/test.log
|
||||||
|
|
Loading…
Reference in New Issue