forked from jeffman/Mother2GbaTranslation
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.42 KB
/
test_master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test
on:
# Trigger the workflow on push,
# but only for the master branch
push:
branches:
- master
permissions: read-all
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
issue_creation:
name: Create issue on failure
runs-on: ubuntu-latest
permissions:
issues: write
needs: test
if: failure()
steps:
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: test-report
- name: Create the issue
uses: peter-evans/create-issue-from-file@v4
with:
title: Test failure
content-filepath: test.log
labels: |
report
automated issue