Skip to content

Commit

Permalink
Merge pull request #862 from europeana/feat/MET-6194-Add-Separate-CI-…
Browse files Browse the repository at this point in the history
…Script-to-GithubActions

MET-6194 Add Github CI Action
  • Loading branch information
andyjmaclean authored Oct 22, 2024
2 parents 17c1137 + c0ec0d7 commit 07fb7e2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI
on:
push
jobs:
run-unit:
name: 'tests'
uses: ./.github/workflows/run-tests.yaml
secrets: inherit
run-sonar:
needs: [run-unit]
uses: ./.github/workflows/run-sonar.yaml
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/run-sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: '- helper (sonar)'
on: workflow_call
jobs:
run-sonar:
if: ${{ github.event.inputs.run_build == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag_name }}
ref: ${{ github.event.inputs.tag_name || github.ref_name }}

- name: Get Metis LCOV
uses: actions/download-artifact@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag_name }}
ref: ${{ github.event.inputs.tag_name || github.ref_name }}
- uses: actions/setup-node@v4
with:
node-version: '18.18.0'
Expand Down

0 comments on commit 07fb7e2

Please sign in to comment.