diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..83b7e47 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,66 @@ +name: Release grabber + +on: + pull_request: + types: + - opened + - synchronize + +jobs: + build_linux: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + + - name: Install agent dependencies + working-directory: ./packages/grabber + run: npm ci + + - name: Run agent build + working-directory: . + run: | + grabber_build.sh linux x64 + ls ./packages/grabber/build + + build_windows: + runs-on: windows-10 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + + - uses: actions/setup-node@v4 + + - name: Install agent dependencies + working-directory: .\packages\grabber + run: npm ci + + - name: Run agent build + working-directory: . + shell: cmd + run: | + grabber_build_win64.bat + + dir .\packages\grabber\build\ +# - name: Assemble with Gradle +# env: +# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe +# run: .\gradlew.bat assemble +# - name: Warm up js browser +# shell: cmd +# env: +# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe +# run: gradlew.bat jsBrowserTest || exit 0 +# - name: Test with Gradle +# env: +# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe +# run: .\gradlew.bat check +# - name: Upload check reports +# uses: actions/upload-artifact@v3 +# if: always() +# with: +# name: build-reports-win +# path: build/reports/ +# retention-days: 1