From 456f2a28efc72809c4ac7dd7ee838e0e5b0a061f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 14 Jan 2023 10:53:35 +0300 Subject: CI: cleanup workflow * better job naming * runs on ubuntu-latest * use Java LTS * use setup-node in vnext --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1b9f707..b5f01015 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Java CI +name: Juick on: pull_request: @@ -6,12 +6,11 @@ on: branches: [master] jobs: - build: - runs-on: ubuntu-20.04 + current: + runs-on: ubuntu-latest strategy: matrix: profile: [default, postgres, mysql] - name: OpenJDK services: postgres: image: postgres @@ -32,11 +31,11 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-retries=3 --health-timeout=5s --health-start-period=15s steps: - uses: actions/checkout@v2 - - name: Set up JDK 19 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: "temurin" - java-version: 19 + java-version: 17 cache: "maven" - name: Setup Node.JS 18 uses: actions/setup-node@v3 @@ -57,6 +56,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Setup Node.JS 18 + uses: actions/setup-node@v3 + with: + node-version: "18" + cache: "npm" - run: npm ci - run: npm test - run: npm run lint -- cgit v1.2.3