cleaner action names (#5479)

This commit is contained in:
Alexander Tsybulsky 2022-04-22 08:45:19 +03:00 committed by GitHub
parent 3742f2b0d6
commit 302178db78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 12 deletions

View File

@ -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

View File

@ -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: