JavaCompilerCore/.gitea/workflows/build_and_test.yml

25 lines
575 B
YAML
Raw Normal View History

2024-03-08 14:08:45 +00:00
name: Build and Test with Maven
2024-03-07 13:41:50 +00:00
on: [push]
jobs:
2024-03-08 14:08:45 +00:00
Build-and-test-with-Maven:
2024-03-07 13:41:50 +00:00
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
2024-03-08 14:00:17 +00:00
- name: Install maven
run: |
2024-03-08 14:05:02 +00:00
apt update
apt install -y maven
2024-03-08 13:54:58 +00:00
- name: Install java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
2024-11-20 16:03:37 +00:00
java-version: '22'
2024-03-08 13:54:58 +00:00
cache: 'maven'
- name: Compile project
run: |
mvn compile
2024-03-08 13:54:58 +00:00
- name: Run tests
2024-03-07 13:41:50 +00:00
run: |
2024-03-08 13:54:58 +00:00
mvn test