From adac3ce89733934abc0c8bdfb5c8171c509488a1 Mon Sep 17 00:00:00 2001 From: Viacheslav Kudinov Date: Thu, 10 Jun 2021 19:18:50 +0200 Subject: [PATCH] Workflow steps names were added. --- .github/workflows/build-action.yaml | 28 +++++++++++++++++------ .github/workflows/test_maven_actions.yaml | 2 +- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-action.yaml b/.github/workflows/build-action.yaml index 3e6466d..2f7e579 100644 --- a/.github/workflows/build-action.yaml +++ b/.github/workflows/build-action.yaml @@ -1,4 +1,4 @@ -name: "Build and test maven GitHub action" +name: "Build and test Maven GitHub action" on: pull_request: @@ -13,22 +13,36 @@ jobs: maven_version: [3.1.1, 3.2.5, 3.3.9, 3.5.4, 3.6.3, 3.8.1] steps: - - uses: actions/checkout@v2 + - name: "Checkout code" + uses: actions/checkout@v2 + - name: "Set Node.js" uses: actions/setup-node@v1 with: node-version: 12 - - run: npm install - - run: npm run build - - run: npm i -g @vercel/ncc - - run: npm run build-dist + + - name: "Install" + run: npm install + + - name: "Run build" + run: npm run build + + - name: "Install ncc" + run: npm i -g @vercel/ncc + + - name: "Run distribution" + run: npm run build-dist + - name: "Set up JDK" uses: actions/setup-java@v2 with: java-version: "8" distribution: "adopt" - - uses: ./ + + - name: "Set Maven from local GitHub action" + uses: ./ with: maven-version: ${{ matrix.maven_version }} + - name: "Validate Maven version" run: mvn -v | head -1 | grep "${{ matrix.maven_version }}" diff --git a/.github/workflows/test_maven_actions.yaml b/.github/workflows/test_maven_actions.yaml index 11a2231..2fcb946 100644 --- a/.github/workflows/test_maven_actions.yaml +++ b/.github/workflows/test_maven_actions.yaml @@ -17,7 +17,7 @@ jobs: distribution: 'adopt' - name: "Verify Java version" run: java -version - - uses: vk-org/setup-maven@master + - uses: ${{ github.repository_owner }}/setup-maven@master with: maven-version: 3.8.1 - run: mvn -v