Skip to content

Commit

Permalink
fix: use setup-java for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnaldo committed Feb 6, 2025
1 parent 7d04f75 commit 9c4de48
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
with:
submodules: true

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup SBT
uses: sbt/setup-sbt@v1

- name: Fetch all tags from ecma262
env:
ESMETA_HOME: ${{ github.workspace }}
Expand All @@ -38,6 +48,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup SBT
uses: sbt/setup-sbt@v1

- name: Check code format
run: sbt formatCheck

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,30 @@ jobs:
test:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup SBT
uses: sbt/setup-sbt@v1

- name: Run e2e tests
run: |
sbt assembly
cd $ESMETA_HOME/client
npm ci
npx playwright install chromium --with-deps
npx playwright test --project=chromium
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/post-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,27 @@ jobs:
test262test:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt

- name: Setup SBT
uses: sbt/setup-sbt@v1

- name: Run test
env:
ESMETA_HOME: ${{ github.workspace }}
run: sbt test262EvalTest

- name: Report Status
if: failure()
uses: 8398a7/action-slack@v3
Expand Down

0 comments on commit 9c4de48

Please sign in to comment.