Skip to content

Commit

Permalink
Separate package and test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Discookie committed Jun 9, 2023
1 parent b4c3ae2 commit 4003c96
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
version:
name: Version dummy
name: Get version number
runs-on: ubuntu-22.04
steps:
- name: Get the version
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Package CodeChecker VSCode extension

# Triggers the workflow on push or pull request events.
on:
workflow_call:
inputs:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: codechecker-vscodeplugin-tests

# Triggers the workflow on push or pull request events.
on: [push, pull_request]

jobs:
version:
name: Get version number
runs-on: ubuntu-22.04
steps:
- name: Get the version
id: get_version
run: echo version=0.0.0-$(echo ${GITHUB_SHA} | head -c 7) >>$GITHUB_OUTPUT

package:
needs: [version]
uses: ./.github/workflows/package.yml
with:
version: ${{ needs.version.outputs.version }}

test:
uses: ./.github/workflows/test.yml

# Needed to run the packaging and tests in parallel
test-commit:
name: Run commit tests
needs: [package, test]
runs-on: ubuntu-22.04
steps:
- name: Do nothing
run: ":"
20 changes: 2 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
name: codechecker-vscodeplugin-tests
name: Run plugin tests

# Triggers the workflow on push or pull request events.
on: [push, pull_request, workflow_call]
on: [workflow_call]

jobs:
version:
name: Version dummy
runs-on: ubuntu-22.04
steps:
- name: Get the version
id: get_version
run: echo version=0.0.0-$(echo ${GITHUB_SHA} | head -c 7) >>$GITHUB_OUTPUT

package:
needs: [version]
uses: ./.github/workflows/package.yml
with:
version: ${{ needs.version.outputs.version }}

test:
name: Tests
runs-on: ubuntu-22.04
needs: [package]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 4003c96

Please sign in to comment.