From 7f794b56776a24236a0aa1d2147d3a94bec3855b Mon Sep 17 00:00:00 2001 From: kewenchao Date: Fri, 21 Jun 2024 21:46:23 +0800 Subject: [PATCH 1/3] add a action test --- .github/workflows/scala-test.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/scala-test.yml diff --git a/.github/workflows/scala-test.yml b/.github/workflows/scala-test.yml new file mode 100644 index 0000000..8bc0db1 --- /dev/null +++ b/.github/workflows/scala-test.yml @@ -0,0 +1,44 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: For Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: 'sbt' + - name: Run tests + run: sbt test + - name: code generator + run: sbt run + - name: compile scalajs + run: | + cd mdui + sbt compile + # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository + #- name: Upload dependency graph + # uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91 From 28ab5907cb55fbb6a1a2c722dc8b50021a32cbdb Mon Sep 17 00:00:00 2001 From: kewenchao Date: Fri, 21 Jun 2024 21:52:22 +0800 Subject: [PATCH 2/3] Update scala-test.yml --- .github/workflows/scala-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scala-test.yml b/.github/workflows/scala-test.yml index 8bc0db1..b2ad30e 100644 --- a/.github/workflows/scala-test.yml +++ b/.github/workflows/scala-test.yml @@ -31,6 +31,7 @@ jobs: java-version: '11' distribution: 'temurin' cache: 'sbt' + - name: npm install - name: Run tests run: sbt test - name: code generator From 50cb0ee074aa572737287136d3a2609d38bbf8e1 Mon Sep 17 00:00:00 2001 From: kewenchao Date: Fri, 21 Jun 2024 21:54:14 +0800 Subject: [PATCH 3/3] Update scala-test.yml --- .github/workflows/scala-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scala-test.yml b/.github/workflows/scala-test.yml index b2ad30e..35475ff 100644 --- a/.github/workflows/scala-test.yml +++ b/.github/workflows/scala-test.yml @@ -32,6 +32,7 @@ jobs: distribution: 'temurin' cache: 'sbt' - name: npm install + run : npm install - name: Run tests run: sbt test - name: code generator