Skip to content

add test cases for js imports #2129

add test cases for js imports

add test cases for js imports #2129

Workflow file for this run

name: Check Code Quality
on:
pull_request:
branches:
- "**"
jobs:
formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Check formatting
run: sbt scalafmtCheck test:scalafmtCheck
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt Test/scalafmt'"
if: ${{ failure() }}
unit-test:
needs: formatting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run unit test
run: sbt -J-Xmx4G test test:test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Previous step failed because unit test failed."
if: ${{ failure() }}