Skip to content

Commit

Permalink
Migrate to the unified workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Mar 21, 2023
1 parent bd2ebd5 commit eaf462c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 143 deletions.
18 changes: 0 additions & 18 deletions .github/matcher.json

This file was deleted.

35 changes: 0 additions & 35 deletions .github/toolchains.xml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
check-freeze-period:
if: github.event_name == 'pull_request'
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/verifyFreezePeriod.yml@master
check-merge-commits:
if: github.event_name == 'pull_request'
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/checkMergeCommits.yml@master
build:
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/mavenBuild.yml@master

30 changes: 3 additions & 27 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,13 @@ name: Publish Unit Test Results

on:
workflow_run:
workflows: ["Build PDE"]
workflows: ["Continuous Integration"]
types:
- completed

jobs:
unit-test-results:
name: Unit Test Results
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'

steps:
- name: Download and Extract Artifacts
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
mkdir -p artifacts && cd artifacts
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
do
IFS=$'\t' read name url <<< "$artifact"
gh api $url > "$name.zip"
unzip -d "$name" "$name.zip"
done
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ github.event.workflow_run.head_sha }}
files: "artifacts/**/*.xml"
check:
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/publishTestResults.yml@master



Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/verifyFreezePeriod.yml

This file was deleted.

0 comments on commit eaf462c

Please sign in to comment.