Skip to content

Commit

Permalink
Make E2E test OS-agnostic (#60)
Browse files Browse the repository at this point in the history
closes gh-59
  • Loading branch information
making authored Jan 27, 2021
1 parent 3ea53f4 commit a18d08a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ jobs:
if: runner.os != 'Windows'
run: |
chmod +x dist${{ matrix.separator }}rsc-${{ matrix.platform }}${{ matrix.extension }}
- name: e2e-test
if: runner.os != 'Windows'
- name: e2e-test-native
env:
RSC_PATH: ..${{ matrix.separator }}dist${{ matrix.separator }}rsc-${{ matrix.platform }}${{ matrix.extension }}
run: |
set -e
echo "📝 E2E Test for native image"
./run-e2e.sh dist${{ matrix.separator }}rsc-${{ matrix.platform }}${{ matrix.extension }} ${{ runner.os }}
echo "📝 E2E Test for uber jar"
./run-e2e.sh "java -jar ./dist/*.jar" ${{ runner.os }}
git clone https://github.com/making/rsc-e2e
mvn test -f rsc-e2e
- name: e2e-test-uber-jar
if: runner.os == 'Linux'
run: |
export RSC_PATH="java -jar ../$(ls ./dist/*.jar)"
mvn test -f rsc-e2e
- name: upload-dist
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit a18d08a

Please sign in to comment.