From 302178db78563d220afe817caf3df5946bdb7a25 Mon Sep 17 00:00:00 2001 From: Alexander Tsybulsky Date: Fri, 22 Apr 2022 08:45:19 +0300 Subject: [PATCH] cleaner action names (#5479) --- .../workflows/{build.yml => main-build.yml} | 25 ++++++++++++------- .github/workflows/{test.yml => test-pr.yml} | 7 +++--- 2 files changed, 20 insertions(+), 12 deletions(-) rename .github/workflows/{build.yml => main-build.yml} (93%) rename .github/workflows/{test.yml => test-pr.yml} (95%) diff --git a/.github/workflows/build.yml b/.github/workflows/main-build.yml similarity index 93% rename from .github/workflows/build.yml rename to .github/workflows/main-build.yml index 181898d44..68353dd29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/main-build.yml @@ -1,4 +1,4 @@ -name: build +name: main-build on: push: @@ -6,12 +6,10 @@ on: - main jobs: - build: + build-merged: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - with: - fetch-depth: 2 - name: Use Node.js uses: actions/setup-node@v2 with: @@ -33,11 +31,6 @@ jobs: user_email: 'github-actions[bot]@users.noreply.github.com' publish_branch: main publish_dir: ../build - - name: deploy-release-tag - if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit' - env: - GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} - run: ./ci/deploy-release-tag.sh - name: Upload build artifact if: always() uses: actions/upload-artifact@main @@ -45,6 +38,20 @@ jobs: name: zabapgit_standalone.abap path: ./zabapgit.abap retention-days: 7 + + auto-tag: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + - name: deploy-release-tag + if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit' + env: + GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} + run: ./ci/deploy-release-tag.sh + coverage: runs-on: ubuntu-latest timeout-minutes: 5 diff --git a/.github/workflows/test.yml b/.github/workflows/test-pr.yml similarity index 95% rename from .github/workflows/test.yml rename to .github/workflows/test-pr.yml index 839a9b89c..586536eea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-pr.yml @@ -1,4 +1,4 @@ -name: test +name: test-pr on: pull_request: @@ -7,7 +7,7 @@ permissions: contents: read jobs: - build: + lint-and-merge: runs-on: ubuntu-latest timeout-minutes: 10 steps: @@ -27,7 +27,8 @@ jobs: name: zabapgit_standalone.abap path: ./zabapgit.abap retention-days: 7 - test: + + unit-tests: runs-on: ubuntu-latest timeout-minutes: 10 steps: