mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +00:00
chore: ajout d'un action github
This commit is contained in:
25
.github/workflows/static.yml
vendored
Normal file
25
.github/workflows/static.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Java Test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Compile Java sources
|
||||
run: javac -d bin $(find src -name "*.java")
|
||||
|
||||
- name: Run program
|
||||
run: java -cp bin Main
|
||||
Reference in New Issue
Block a user