Merge pull request #1005 from silk-framework/feature/supportXpOpenAIE… #126
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [ develop, master ] | |
| pull_request: | |
| branches: [ develop, master ] | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Fetch submodules | |
| run: git submodule update --init --recursive | |
| - name: Set up Node.js | |
| uses: actions/setup-node@main | |
| with: | |
| node-version: "lts/krypton" | |
| cache: 'yarn' | |
| cache-dependency-path: 'yarn.lock' | |
| - name: Install Node dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run i18n parser | |
| run: yarn i18n-parser | |
| working-directory: ./workspace | |
| - name: Build frontend code | |
| run: yarn build-di-prod | |
| working-directory: ./workspace | |
| - name: Run jest tests | |
| run: yarn test-ci --config=./config/jest/config.js | |
| working-directory: ./workspace | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'sbt' | |
| - name: Install sbt | |
| run: | | |
| echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list | |
| echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list | |
| curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add | |
| sudo apt-get update | |
| sudo apt-get install -y sbt | |
| - name: Run sbt tests | |
| run: sbt test | |
| env: | |
| SBT_OPTS: "-Xmx6G -XX:+UseG1GC" | |
| - name: Publish Test Report | |
| uses: dorny/test-reporter@v1.9.1 | |
| if: always() | |
| with: | |
| name: Test Results | |
| path: '**/target/test-reports/*.xml' | |
| reporter: java-junit | |
| fail-on-error: true | |
| list-suites: 'failed' | |
| list-tests: 'failed' |