Skip to content

Commit

Permalink
Evolve test action further:
Browse files Browse the repository at this point in the history
- test on Java 21 too
- run ECMA tests too
- add manual triggering, don't run on main branch
  • Loading branch information
szegedi committed Dec 27, 2024
1 parent 01bc43e commit e5de4e5
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Run Tests

on:
pull_request:
push:
branches: [main]
branches-ignore:
- main
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [11, 21]

steps:
# Check out the repository code
- name: Check out code
Expand All @@ -19,10 +24,16 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: ${{ matrix.java-version }}

# Navigate to the make/nashorn directory and run tests
- name: Run Tests
- name: Run Nashorn Tests
working-directory: make/nashorn
run: |
ant test
# Navigate to the make/nashorn directory and run tests
- name: Run ECMA-262 Tests
working-directory: make/nashorn
run: |
ant test
ant test262-parallel

0 comments on commit e5de4e5

Please sign in to comment.